68 lines
3.4 KiB
XML
68 lines
3.4 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.OfferCellValueImpl?>
|
|
<?import ru.trader.view.support.cells.DoubleCell?>
|
|
|
|
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
|
fx:controller="ru.trader.controllers.ItemsController">
|
|
<TableView fx:id="tblItems" editable="true" VBox.vgrow="ALWAYS" prefWidth="1175.0">
|
|
<columns>
|
|
<TableColumn editable="true" minWidth="200.0" text="%market.item.name">
|
|
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn editable="true" resizable="false" text="%market.offer.buy">
|
|
<columns>
|
|
<TableColumn minWidth="140.0" text="%market.offer.min">
|
|
<cellValueFactory><OfferCellValueImpl property="minSell"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="80.0" text="%market.offer.avg">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="avgSell"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="140.0" text="%market.offer.max">
|
|
<cellValueFactory><OfferCellValueImpl property="maxSell"/></cellValueFactory>
|
|
</TableColumn>
|
|
</columns>
|
|
</TableColumn>
|
|
<TableColumn editable="true" resizable="false" text="%market.offer.sell">
|
|
<columns>
|
|
<TableColumn minWidth="140.0" text="%market.offer.min">
|
|
<cellValueFactory><OfferCellValueImpl property="minBuy"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="80.0" text="%market.offer.avg">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
<cellValueFactory><PropertyValueFactory property="avgBuy"/></cellValueFactory>
|
|
</TableColumn>
|
|
<TableColumn minWidth="140.0" text="%market.offer.max">
|
|
<cellValueFactory><OfferCellValueImpl property="maxBuy"/></cellValueFactory>
|
|
</TableColumn>
|
|
</columns>
|
|
</TableColumn>
|
|
<TableColumn editable="true" resizable="false" text="%market.order.profit">
|
|
<columns>
|
|
<TableColumn fx:id="minProfit" minWidth="80.0" text="%market.offer.min">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="avgProfit" minWidth="80.0" text="%market.offer.avg">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
</TableColumn>
|
|
<TableColumn fx:id="maxProfit" minWidth="80.0" text="%market.offer.max" sortType="DESCENDING">
|
|
<cellFactory><DoubleCell/></cellFactory>
|
|
</TableColumn>
|
|
</columns>
|
|
</TableColumn>
|
|
</columns>
|
|
<columnResizePolicy>
|
|
<TableView fx:constant="UNCONSTRAINED_RESIZE_POLICY"/>
|
|
</columnResizePolicy>
|
|
<sortOrder>
|
|
<fx:reference source="maxProfit"/>
|
|
</sortOrder>
|
|
</TableView>
|
|
</VBox>
|