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() |
TreeSet<org.tentackle.validate.ValidationMapper> |
getValidationMappers()
Gets the validation mappers to map the validation results to the controls.
|
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 TreeSet<org.tentackle.validate.ValidationMapper> getValidationMappers()
public boolean validateForm()
public void print()
public void setChangeable(boolean changeable)
changeable - true if changeablepublic boolean isChangeable()
Tentackle - distributed, domain- and model-driven