@Service(value=TableUtilities.class) public class TableUtilities extends Object
| Constructor and Description |
|---|
TableUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static TableUtilities |
getInstance()
The singleton.
|
void |
print(FxTableView<?> table,
String title)
Prints a table view.
Tables need a special handling for multiple pages. |
<S> void |
toSpreadsheet(FxTableView<S> table,
File file,
boolean onlySelected)
Converts the table to a spreadsheet file.
|
<S> void |
toXml(FxTableView<S> table,
File file,
boolean onlySelected)
Exports a table to an XML file.
|
public static TableUtilities getInstance()
public <S> void toSpreadsheet(FxTableView<S> table, File file, boolean onlySelected)
S - the row typetable - the table viewfile - the output fileonlySelected - true if export only selected rowspublic <S> void toXml(FxTableView<S> table, File file, boolean onlySelected)
S - the row typetable - the table viewfile - the output fileonlySelected - true if export only selected rowspublic void print(FxTableView<?> table, String title)
table - the table to printtitle - the optional title, null if take from table's configurationTentackle - distributed, domain- and model-driven