T - the pdo typepublic abstract class PdoEditor<T extends PersistentDomainObject<T>> extends AbstractFxController implements PdoHolder<T>, DomainContextProvider
| Constructor and Description |
|---|
PdoEditor() |
| Modifier and Type | Method and Description |
|---|---|
DomainContext |
getDomainContext() |
NavigableSet<org.tentackle.validate.ValidationMapper> |
getValidationMappers()
Gets the validation mappers to map the validation results to the controls.
If getValidationPath() returns a non-null value, a set with a default mapper
will be created. |
String |
getValidationPath()
Gets the validation root path.
By default, the server returns validation results with a validation path that starts with the entity baseclassname (the first character in lowercase). |
boolean |
isChangeable()
Get the changeable property of the editor's view.
|
boolean |
isEditAllowed()
Returns whether the user has sufficient permissions to edit the PDO.
|
boolean |
isNewAllowed()
Returns whether the user is allowed to create a new PDO.
|
boolean |
isRemoveAllowed()
Returns whether the user is allowed to edit the PDO and the PDO is removable.
|
boolean |
isViewAllowed()
Returns whether the user has sufficient permissions to view the PDO.
|
void |
print()
Prints the current PDO.
|
abstract void |
requestInitialFocus()
Requests the initial focus after stage is shown.
|
void |
setChangeable(boolean changeable)
Set the changeable property of the editor's view.
|
boolean |
validateForm()
Validates the form before the PDO get saved.
This can be used for validations that are not covered by the persistence model, for example password confirmation. |
configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, initialize, setView, validateInjectionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiton, oppublic abstract void requestInitialFocus()
public DomainContext getDomainContext()
getDomainContext in interface DomainContextProviderpublic boolean isViewAllowed()
public boolean isEditAllowed()
public boolean isRemoveAllowed()
public boolean isNewAllowed()
public String getValidationPath()
ValidationMapper is necessary to map the results back to the form.getValidationMappers()public NavigableSet<org.tentackle.validate.ValidationMapper> getValidationMappers()
getValidationPath() returns a non-null value, a set with a default mapper
will be created.public boolean validateForm()
public void print()
public void setChangeable(boolean changeable)
changeable - true if changeablepublic boolean isChangeable()
Tentackle - distributed, domain- and model-driven