76 lines
3.6 KiB
XML
76 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.scene.control.cell.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
<?import javafx.scene.control.*?>
|
|
|
|
|
|
<?import ru.trader.view.support.cells.DoubleCell?>
|
|
|
|
<?import ru.trader.view.support.cells.OfferCellValueImpl?>
|
|
<?import ru.trader.view.support.cells.OfferTableCell?>
|
|
<?import ru.trader.view.support.cells.DistanceCell?>
|
|
<HBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
|
fx:controller="ru.trader.controllers.OrdersController" styleClass="dialog"
|
|
prefWidth="1010">
|
|
<TableView fx:id="tblOrders" editable="true">
|
|
<columns>
|
|
<TableColumn minWidth="160.0" text="%market.item.name">
|
|
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="60.0" text="%market.offer.price">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="price"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="count" minWidth="60.0" prefWidth="60.0" text="%market.order.count">
|
|
<cellValueFactory><PropertyValueFactory property="count"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="160.0" text="%market.order.buyer">
|
|
<cellValueFactory><OfferCellValueImpl property="buyOffer"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="80.0" text="%market.order.profit">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="profit"/></cellValueFactory>
|
|
</TableColumn>
|
|
|
|
<TableColumn resizable="false" text="%market.offer.max.full">
|
|
<columns>
|
|
<TableColumn fx:id="maxCount" minWidth="60.0" prefWidth="60.0" text="%market.order.count">
|
|
<cellValueFactory><PropertyValueFactory property="max"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="bestProfit" minWidth="80.0" text="%market.order.profit" sortType="DESCENDING">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="bestProfit"/></cellValueFactory>
|
|
</TableColumn>
|
|
</columns>
|
|
</TableColumn>
|
|
</columns>
|
|
<columnResizePolicy>
|
|
<TableView fx:constant="UNCONSTRAINED_RESIZE_POLICY"/>
|
|
</columnResizePolicy>
|
|
<sortOrder>
|
|
<fx:reference source="bestProfit"/>
|
|
</sortOrder>
|
|
</TableView>
|
|
<TableView fx:id="tblBuyers" minWidth="335">
|
|
<columns>
|
|
<TableColumn minWidth="160.0" text="%market.order.buyer">
|
|
<cellFactory><OfferTableCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="price"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="curDistance" minWidth="80.0" text="%market.order.distance">
|
|
<cellFactory><DistanceCell/></cellFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="curProfit" minWidth="80.0" text="%market.order.profit" sortType="DESCENDING">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
</TableColumn>
|
|
</columns>
|
|
<columnResizePolicy>
|
|
<TableView fx:constant="UNCONSTRAINED_RESIZE_POLICY"/>
|
|
</columnResizePolicy>
|
|
<sortOrder>
|
|
<fx:reference source="curProfit"/>
|
|
</sortOrder>
|
|
</TableView>
|
|
</HBox>
|