T - the PDO typepublic class PdoComponentAddon<T extends PersistentDomainObject<T>> extends Object
| Constructor and Description |
|---|
PdoComponentAddon(FxComponent component,
Supplier<T> pdoSupplier)
Creates the addon.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createPdo()
Creates a new PDO.
|
void |
edit()
Edit or view current pdo.
|
T |
getPdo()
Gets the PDO.
|
boolean |
isInSearchOrEdit()
Returns whether search or edit dialog is currently displayed.
|
void |
search()
Search for a PDO.
|
T |
searchPdo(T proxy)
Modal search of the pdo.
|
void |
setPdo(T pdo)
Sets the PDO.
|
public PdoComponentAddon(FxComponent component, Supplier<T> pdoSupplier)
component - the fx componentpdoSupplier - a supplier for the currently displayed PDOpublic T getPdo()
public void setPdo(T pdo)
pdo - the pdopublic boolean isInSearchOrEdit()
public void edit()
public void search()
public T createPdo()
Tentackle - distributed, domain- and model-driven