@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.Pane |
center(javafx.scene.control.Control childNode)
Create an element that will layout the
childNode
horizontally centered within a Dialog. |
javafx.scene.layout.Pane |
center(javafx.scene.image.ImageView childNode)
Create an element that will layout the
childNode
horizontally centered within a Dialog. |
javafx.scene.Group |
center(javafx.scene.layout.Pane childNode)
Create an element that will layout the
childNode
horizontally centered within a Dialog. |
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.scene.Node |
createVerticalSpacer(int heigth)
Create a Node that forces vertical spacing.
|
javafx.beans.binding.BooleanBinding |
enableShipCatalogueForShips(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX city)
Boolean binding for the navigation enabling of the ships cataloque.
|
int |
removeById(javafx.scene.layout.Pane parent,
String id)
Remove a node identified by
id from the parent
and return the index. |
javafx.scene.layout.Pane |
right(javafx.scene.control.Control childNode)
Create an element that will layout the
childNode
at the right dialog content border. |
javafx.scene.Group |
right(javafx.scene.layout.Pane childNode)
Create an element that will layout the
childNode
at the right dialog content border. |
@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 shippublic javafx.scene.layout.Pane center(javafx.scene.control.Control childNode)
childNode
horizontally centered within a Dialog.childNode - that should be centeredpublic javafx.scene.layout.Pane center(javafx.scene.image.ImageView childNode)
childNode
horizontally centered within a Dialog.childNode - that should be centeredpublic javafx.scene.Group center(javafx.scene.layout.Pane childNode)
childNode
horizontally centered within a Dialog.childNode - that should be centeredpublic javafx.scene.Group right(javafx.scene.layout.Pane childNode)
childNode
at the right dialog content border.childNode - that should be right aligned.public javafx.scene.layout.Pane right(javafx.scene.control.Control childNode)
childNode
at the right dialog content border.childNode - that should be right aligned.public javafx.scene.Node createVerticalSpacer(int heigth)
heigth - of the spacing node.heigth.public int removeById(javafx.scene.layout.Pane parent,
String id)
id from the parent
and return the index.parent - containing the nodeid - of the idCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.