@Service(value=RdcUtilities.class) public class RdcUtilities extends Object
| Constructor and Description |
|---|
RdcUtilities() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PersistentDomainObject<T>> |
displayCrudStage(T pdo,
boolean editable,
javafx.stage.Modality modality,
javafx.stage.Window owner)
CRUD of a PDO in a separate window.
|
<T extends PersistentDomainObject<T>> |
displayCrudStage(T pdo,
javafx.collections.ObservableList<T> pdoList,
boolean editable,
javafx.stage.Modality modality,
javafx.stage.Window owner,
Consumer<PdoCrud<T>> configurator)
CRUD of a PDO in a separate window.
|
<T extends PersistentDomainObject<T>> |
displaySearchStage(T pdo,
javafx.stage.Modality modality,
javafx.stage.Window owner,
boolean createPdoAllowed)
Searches for PDOs in a separate window.
|
<T extends PersistentDomainObject<T>> |
displaySearchStage(T pdo,
javafx.stage.Modality modality,
javafx.stage.Window owner,
boolean createPdoAllowed,
Consumer<PdoSearch<T>> configurator)
Searches for PDOs in a separate window.
|
<T extends PersistentDomainObject<T>> |
getCrud(T pdo,
javafx.collections.ObservableList<T> pdoList,
boolean editable,
javafx.stage.Modality modality,
javafx.stage.Window owner)
Gets a CRUD for a PDO.
If the PDO is already being edited the corresponding stage will be brought to front and null is returned. |
static RdcUtilities |
getInstance()
The singleton.
|
<T extends PersistentDomainObject<T>> |
getSearch(T pdo,
javafx.stage.Modality modality,
javafx.stage.Window owner)
Gets a search controller for a PDO.
|
Boolean |
showSaveDiscardCancelDialog()
Shows a question dialog whether to save, discard or cancel editing of a PDO.
|
public static RdcUtilities getInstance()
public <T extends PersistentDomainObject<T>> T displayCrudStage(T pdo, boolean editable, javafx.stage.Modality modality, javafx.stage.Window owner)
T - the pdo typepdo - the pdoeditable - true if user may edit the pdo, false if to view onlymodality - the modalityowner - the owner, null if nonepublic <T extends PersistentDomainObject<T>> T displayCrudStage(T pdo, javafx.collections.ObservableList<T> pdoList, boolean editable, javafx.stage.Modality modality, javafx.stage.Window owner, Consumer<PdoCrud<T>> configurator)
T - the pdo typepdo - the pdopdoList - the optional list of PDOs to navigate in the listeditable - true if user may edit the pdo, false if to view onlymodality - the modalityowner - the owner, null if noneconfigurator - optional crud configuratorpublic <T extends PersistentDomainObject<T>> PdoCrud<T> getCrud(T pdo, javafx.collections.ObservableList<T> pdoList, boolean editable, javafx.stage.Modality modality, javafx.stage.Window owner)
T - the pdo typepdo - the pdopdoList - the optional list of PDOs to navigate in the listeditable - true if user may edit the pdo, false if to view onlymodality - the modalityowner - the owner, null if nonepublic <T extends PersistentDomainObject<T>> javafx.collections.ObservableList<T> displaySearchStage(T pdo, javafx.stage.Modality modality, javafx.stage.Window owner, boolean createPdoAllowed)
T - the pdo typepdo - the pdo as a templatemodality - the modalityowner - the owner, null if nonecreatePdoAllowed - true if allow to create a new PDO from within the search dialogpublic <T extends PersistentDomainObject<T>> javafx.collections.ObservableList<T> displaySearchStage(T pdo, javafx.stage.Modality modality, javafx.stage.Window owner, boolean createPdoAllowed, Consumer<PdoSearch<T>> configurator)
T - the pdo typepdo - the pdo as a templatemodality - the modalityowner - the owner, null if nonecreatePdoAllowed - true if allow to create a new PDO from within the search dialogconfigurator - the optional configurator for the PdoSearchpublic <T extends PersistentDomainObject<T>> PdoSearch<T> getSearch(T pdo, javafx.stage.Modality modality, javafx.stage.Window owner)
T - the pdo typepdo - the pdomodality - the modalityowner - the owner, null if nonepublic Boolean showSaveDiscardCancelDialog()
Tentackle - distributed, domain- and model-driven