public class Rdc extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeStageHierarchy(javafx.scene.Node node)
Closes the stage hierarchy of given node, except the main stage.
|
static <T extends PersistentDomainObject<T>> |
createPdoCrud(T pdo,
boolean editable,
boolean modal)
Creates a CRUD controller for a pdo.
|
static <T extends PersistentDomainObject<T>> |
createPdoSearch(T pdo)
Creates a search controller for a pdo.
|
static <T extends PersistentDomainObject<T>> |
createTreeCell()
Creates a tree cell for a pdo type.
|
static <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.
|
static <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.
|
static <T extends PersistentDomainObject<T>> |
displaySearchStage(T pdo,
javafx.stage.Modality modality,
javafx.stage.Window owner,
boolean createPdoAllowed)
Searches for PDOs in a separate window.
|
static <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.
|
static <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 <T extends PersistentDomainObject<T>> |
getSearch(T pdo,
javafx.stage.Modality modality,
javafx.stage.Window owner)
Gets a search controller for a PDO.
|
static Boolean |
showSaveDiscardCancelDialog()
Shows a question dialog whether to save, discard or cancel editing of a PDO.
|
public static <T extends PersistentDomainObject<T>> PdoCrud<T> createPdoCrud(T pdo, boolean editable, boolean modal)
T - the pdo typepdo - the pdoeditable - true if user may edit the pdo, false if to view onlymodal - true if modal modepublic static <T extends PersistentDomainObject<T>> PdoSearch<T> createPdoSearch(T pdo)
T - the pdo typepdo - the pdopublic static <T extends PersistentDomainObject<T>> javafx.scene.control.TreeCell<T> createTreeCell()
T - the pdo typepublic static <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 static <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 static <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 static <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 static <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 static <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 static Boolean showSaveDiscardCancelDialog()
public static void closeStageHierarchy(javafx.scene.Node node)
node - the nodeTentackle - distributed, domain- and model-driven