T - the PDO type@FxControllerService(binding=NO) public class PdoCrud<T extends org.tentackle.pdo.PersistentDomainObject<T>> extends AbstractFxController implements org.tentackle.pdo.PdoHolder<T>
| Constructor and Description |
|---|
PdoCrud() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Closes this CRUD.
|
protected boolean |
closeIfModal()
Closes the stage if modal.
|
void |
configure() |
protected InteractiveError |
createInteractiveError(org.tentackle.validate.ValidationResult validationResult)
Creates an interactive error from a validation result.
|
protected List<InteractiveError> |
createInteractiveErrors(List<org.tentackle.validate.ValidationResult> validationResults)
Creates interactive errors from validation results.
|
void |
delete()
Deletes the current PDO.
|
void |
find()
Searches for a PDO.
|
FxHBox |
getButtonBox()
Gets the HBox containing all buttons.
|
PdoEditor<T> |
getEditor()
Gets the pdo editor.
|
T |
getPdo()
Gets the pdo.
|
List<T> |
getPdoList()
Gets the list of pdos to walk through.
|
void |
initialize(URL location,
ResourceBundle resources) |
boolean |
isEditable()
Gets whether the user can change the editor's contents.
|
void |
newPdo()
Discards the current PDO and edits a new one.
|
void |
next()
Navigates to the next PDO in the list.
|
void |
previous()
Navigates to the previous PDO in the list.
|
void |
print()
Prints the PDO.
|
boolean |
releasePdo()
Releases the current PDO.
|
void |
save()
Saves the current PDO.
|
void |
security()
Shows the security dialog.
|
void |
setEditable(boolean editable)
Sets whether the user can change the editor's contents.
|
void |
setEditor(PdoEditor<T> editor)
Sets the pdo editor.
|
void |
setPdo(T pdo)
Sets the pdo to edit.
|
void |
setPdoList(List<T> pdoList)
Sets a list of PDOs to walk through via the up and next buttons.
|
protected void |
showValidationResults(org.tentackle.validate.ValidationFailedException ex)
Shows the validation errors.
|
void |
tree()
Shows the browser tree of the current PDO.
|
protected void |
updatePrevNextButtons()
Enables/Disables the previous and next buttons.
|
void |
updateTitle()
Updates the window title if attached to its own stage.
|
createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjectionspublic void setEditable(boolean editable)
Notice: this does not set the changeability of the view!
This happens when setPdo(T) is invoked.
editable - true if editablepublic boolean isEditable()
public void setPdoList(List<T> pdoList)
pdoList - the pdospublic void setEditor(PdoEditor<T> editor)
editor - the editorpublic void setPdo(T pdo)
public T getPdo()
public void updateTitle()
public void initialize(URL location, ResourceBundle resources)
initialize in interface javafx.fxml.Initializablepublic void configure()
configure in interface FxControllerconfigure in class AbstractFxControllerpublic void tree()
public void previous()
public void next()
public void security()
public void newPdo()
public void save()
public void delete()
public void cancel()
public void find()
public boolean releasePdo()
public void print()
public FxHBox getButtonBox()
protected boolean closeIfModal()
protected void updatePrevNextButtons()
protected InteractiveError createInteractiveError(org.tentackle.validate.ValidationResult validationResult)
validationResult - the validation resultprotected List<InteractiveError> createInteractiveErrors(List<org.tentackle.validate.ValidationResult> validationResults)
validationResults - the validation resultsprotected void showValidationResults(org.tentackle.validate.ValidationFailedException ex)
ex - the validation exceptionCopyright © 2016 Krake Softwaretechnik. All rights reserved.