From 91025ea45e211d7f0864a233ab8e6c0fdf709fdc Mon Sep 17 00:00:00 2001 From: iMoHax Date: Wed, 3 Sep 2014 16:51:00 +0400 Subject: [PATCH] add context menu to list stations --- .../java/ru/trader/controllers/OffersController.java | 9 +++++++++ client/src/main/resources/view/main.fxml | 3 +-- client/src/main/resources/view/offers.fxml | 11 ++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/client/src/main/java/ru/trader/controllers/OffersController.java b/client/src/main/java/ru/trader/controllers/OffersController.java index 542ab1d..3c5f235 100644 --- a/client/src/main/java/ru/trader/controllers/OffersController.java +++ b/client/src/main/java/ru/trader/controllers/OffersController.java @@ -1,6 +1,7 @@ package ru.trader.controllers; import javafx.collections.FXCollections; +import javafx.event.ActionEvent; import javafx.scene.control.ListView; import javafx.scene.input.MouseButton; import org.slf4j.Logger; @@ -95,6 +96,14 @@ public class OffersController { return vendor; } + public void addVendor(ActionEvent actionEvent) { + Screeners.showAddVendor(); + } + + public void editVendor(ActionEvent actionEvent) { + Screeners.showEditVendor(vendor); + } + private OfferDescModel asOfferDescModel(OfferModel offer){ return MainController.getMarket().asOfferDescModel(offer); diff --git a/client/src/main/resources/view/main.fxml b/client/src/main/resources/view/main.fxml index d61ce51..989814c 100644 --- a/client/src/main/resources/view/main.fxml +++ b/client/src/main/resources/view/main.fxml @@ -15,7 +15,6 @@ - @@ -33,7 +32,7 @@ - + diff --git a/client/src/main/resources/view/offers.fxml b/client/src/main/resources/view/offers.fxml index 547fc57..c8e25f3 100644 --- a/client/src/main/resources/view/offers.fxml +++ b/client/src/main/resources/view/offers.fxml @@ -12,7 +12,16 @@ - + + + + + + + + + +