Archived
0

- update item desc layout

- correct column size routers
- add show item dec on click right  button in orders
This commit is contained in:
iMoHax
2014-08-06 12:42:32 +04:00
parent 3bee31638e
commit 3c253e2b45
8 changed files with 44 additions and 13 deletions

View File

@@ -4,13 +4,17 @@
<?import javafx.scene.layout.*?>
<?import ru.trader.view.support.cells.OfferListCell?>
<?import javafx.geometry.Insets?>
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ru.trader.controllers.ItemDescController">
<Label text="Продавцы:"/>
fx:controller="ru.trader.controllers.ItemDescController"
spacing="4" >
<fx:define><Insets fx:id="vbox_margin" left="6" top="3" bottom="3"/></fx:define>
<Label text="Продавцы:" VBox.margin="$vbox_margin"/>
<ListView fx:id="seller" maxHeight="200.0">
<cellFactory><OfferListCell/></cellFactory>
</ListView>
<Label text="Покупатели:"/>
<Label text="Покупатели:" VBox.margin="$vbox_margin"/>
<ListView fx:id="buyer" maxHeight="200.0">
<cellFactory><OfferListCell/></cellFactory>
</ListView>

View File

@@ -20,7 +20,7 @@
<TitledPane fx:id="sells" animated="false" text="Продаваемые товары">
<TableView fx:id="tblSell" editable="true">
<columns>
<TableColumn minWidth="235.0" text="Товар">
<TableColumn minWidth="230.0" text="Товар">
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
</TableColumn>
<TableColumn minWidth="110.0" resizable="false" text="Цена" onEditCommit="#editPrice">
@@ -57,7 +57,7 @@
<TitledPane animated="false" text="Покупаемые товары">
<TableView fx:id="tblBuy" editable="true">
<columns>
<TableColumn minWidth="235.0" text="Товар">
<TableColumn minWidth="230.0" text="Товар">
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
</TableColumn>
<TableColumn minWidth="110.0" resizable="false" text="Цена" editable="true" onEditCommit="#editPrice">

View File

@@ -56,10 +56,10 @@
</VBox>
<TableView fx:id="tblOrders" HBox.hgrow="ALWAYS">
<columns>
<TableColumn minWidth="235.0" text="Продавец">
<TableColumn minWidth="230.0" text="Продавец">
<cellValueFactory><PropertyValueFactory property="vendor"/></cellValueFactory>
</TableColumn>
<TableColumn minWidth="235.0" text="Товар">
<TableColumn minWidth="230.0" text="Товар">
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
</TableColumn>
<TableColumn minWidth="80.0" text="Цена">

View File

@@ -14,6 +14,13 @@
-fx-background-radius: 0, 0;
}
.list-view:focused {
-fx-background-color: -fx-box-border, -fx-control-inner-background;
-fx-background-insets: 0,1;
-fx-background-radius: 0, 0;
}
HBox.fields-group {
-fx-spacing: 2;
-fx-padding: 5 10;