Class JavaFXUtils
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.service.JavaFXUtils
-
@Component @Lazy public class JavaFXUtils extends java.lang.ObjectUtility class facilitating some common tasks required by multiple components.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Dec 14, 2013
-
-
Constructor Summary
Constructors Constructor Description JavaFXUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellToGridPane(javafx.scene.layout.GridPane grid, int rowNum, TableRow row, int col, ITableCell cell, javafx.geometry.HPos hAlignment, java.lang.String textStyleClass)Adding a table cell to the gridjavafx.scene.layout.GridPanecreateGridPaneFromModel(Table model)Create a grid pane from a supplied table model.MoneyTransfergetMoneyTransfer(ch.sahits.game.graphic.image.IDataImageLoader imageLoader)Create a new instance for the money transfer.
-
-
-
Method Detail
-
addCellToGridPane
public void addCellToGridPane(javafx.scene.layout.GridPane grid, int rowNum, TableRow row, int col, ITableCell cell, javafx.geometry.HPos hAlignment, java.lang.String textStyleClass)Adding a table cell to the grid- Parameters:
grid- grid pant to which to add.rowNum- row indexrow- table rowcol- column indexcell- the node is pased onhAlignment- horizontal alignmenttextStyleClass- style class for the text
-
createGridPaneFromModel
public javafx.scene.layout.GridPane createGridPaneFromModel(Table model)
Create a grid pane from a supplied table model.- Parameters:
model- base model- Returns:
- grid pane
-
getMoneyTransfer
public MoneyTransfer getMoneyTransfer(ch.sahits.game.graphic.image.IDataImageLoader imageLoader)
Create a new instance for the money transfer.- Returns:
- new control for the money transfer.
-
-