@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,
javafx.scene.text.Font font)
Create a grid pane based on a model.
|
javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
createNextAction(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> |
createPreviousAction(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 |
createShipSelection3Lines(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip,
javafx.scene.text.Font font)
Create the grid pane for the ship selection on three lines.
|
javafx.beans.binding.BooleanBinding |
enableShipCatalogue(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 enableShipCatalogue(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city)
city - proxypublic javafx.event.EventHandler<javafx.scene.input.MouseEvent> createNextAction(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> createPreviousAction(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, javafx.scene.text.Font font)
model - base modelfont - to be usedpublic javafx.scene.layout.GridPane createShipSelection3Lines(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.IShip> currentShip,
javafx.scene.text.Font font)
city - proxy for the player citycurrentShip - non empty current shipfont - to be usedCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.