@Component public class DialogUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
DialogUtil.SailorOnShipBinding |
| Modifier and Type | Field and Description |
|---|---|
private JavaFXUtils |
fxUtils |
| Constructor and Description |
|---|
DialogUtil() |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.layout.GridPane |
createGridPaneFromModel(Table model)
Create a grid pane based on a model.
|
javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
createNextActionForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
Navigate to the next ship in the catalogue.
|
javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
createPreviousActionForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
Navigate to the previous ship in the catalogue.
|
javafx.scene.layout.GridPane |
createShipSelection3LinesForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
Create the grid pane for the ship selection on three lines.
|
javafx.beans.binding.BooleanBinding |
enableShipCatalogueForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city)
Boolean binding for the navigation enabling of the ships cataloque.
|
@Autowired private JavaFXUtils fxUtils
public javafx.beans.binding.BooleanBinding enableShipCatalogueForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city)
city - proxypublic javafx.event.EventHandler<javafx.scene.input.MouseEvent> createNextActionForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
city - proxycurrentShip - current shippublic javafx.event.EventHandler<javafx.scene.input.MouseEvent> createPreviousActionForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
city - proxycurrentShip - current shippublic javafx.scene.layout.GridPane createGridPaneFromModel(Table model)
model - base modelpublic javafx.scene.layout.GridPane createShipSelection3LinesForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip)
city - proxy for the player citycurrentShip - non empty current shipCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.