T - the PDO typepublic interface GuiProvider<T extends PersistentDomainObject<T>> extends PdoHolder<T>, DomainContextProvider
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.input.Dragboard |
createDragboard(javafx.scene.Node node)
Creates the dragboard for the pdo.
|
PdoEditor<T> |
createEditor()
Creates a controller to edit or view this object.
|
PdoFinder<T> |
createFinder()
Creates a controller to search PDOs.
|
javafx.scene.image.ImageView |
createIcon()
Gets the PDO's icon.
The icon is displayed in trees, for example. |
TableConfiguration<T> |
createTableConfiguration()
Gets the tablename used in to initialize the table's gui.
|
FxTableView<T> |
createTableView()
Creates the table view for given configuration.
|
javafx.scene.control.TreeCell<T> |
createTreeCell()
Creates a tree cell for this type of pdo.
|
javafx.scene.control.TreeItem<T> |
createTreeItem()
Creates the tree item for this pdo.
|
void |
dropDragboard(javafx.scene.input.Dragboard dragbord)
Drops the dragboard on the pdo.
|
boolean |
editorExists()
Returns whether a controller exists to edit or view this object.
|
boolean |
finderExists()
Returns whether a finder exists to search for PDOs.
|
ResourceBundle |
getBundle()
Gets the resource bundle for this provider.
|
<P extends PersistentDomainObject<P>> |
getToolTipText(P parent)
Gets the tooltip text with respect to the parent object this
object is displayed in a tree.
|
<P extends PersistentDomainObject<P>> |
getTreeChildObjects(P parent)
Gets the childs with respect to the parent object this
object is displayed in the current tree.
|
int |
getTreeExpandMaxDepth()
Gets the maximum level of expansion allowed in a navigatable object tree.
The default is 0, i.e. |
<P extends PersistentDomainObject<P>> |
getTreeParentObjects(P parent)
Gets the parents with respect to the parent object this
object is displayed in the current tree.
|
T |
getTreeRoot()
Gets the object to be displayed in trees in place of this object.
|
<P extends PersistentDomainObject<P>> |
getTreeText(P parent)
Gets the tree text with respect to the parent object this
object is displayed in a tree.
|
boolean |
isDragAccepted(javafx.scene.input.DragEvent event)
Checks whether drag over the pdo is accepted.
|
boolean |
isEditAllowed()
Returns whether the editor allows editing of the current pdo.
|
boolean |
isViewAllowed()
Returns whether the editor allows viewing of the current pdo.
|
boolean |
providesTreeChildObjects()
Determines whether this object may have child objects that should
be visible in a navigatable tree.
|
boolean |
providesTreeParentObjects()
Determines whether the navigatable object tree should show the
parents of this object.
Objects may be childs of different parents in terms of "being referenced from" or any other relation, for example: the warehouses this customer visited. |
boolean |
stopTreeExpansion()
Determines whether tree explansion should stop at this object.
Sometimes treechilds should not be expanded if in a recursive "expand all". |
getDomainContext, on, opResourceBundle getBundle()
javafx.scene.image.ImageView createIcon()
boolean editorExists()
createEditor()boolean isEditAllowed()
boolean isViewAllowed()
PdoEditor<T> createEditor()
FxRuntimeException - if editorExists() == falseboolean finderExists()
PdoFinder<T> createFinder()
FxRuntimeException - if editorExists() == falsejavafx.scene.input.Dragboard createDragboard(javafx.scene.Node node)
node - the drag sourceboolean isDragAccepted(javafx.scene.input.DragEvent event)
event - the drag eventvoid dropDragboard(javafx.scene.input.Dragboard dragbord)
dragbord - the dragboardT getTreeRoot()
<P extends PersistentDomainObject<P>> String getTreeText(P parent)
P - the parent PDO typeparent - is the parent object, null if no parent<P extends PersistentDomainObject<P>> String getToolTipText(P parent)
P - the parent PDO typeparent - is the parent object, null if no parentjavafx.scene.control.TreeItem<T> createTreeItem()
javafx.scene.control.TreeCell<T> createTreeCell()
boolean stopTreeExpansion()
boolean providesTreeChildObjects()
<P extends PersistentDomainObject<P>> Collection<? extends PersistentDomainObject<?>> getTreeChildObjects(P parent)
P - the parent PDO typeparent - the parent object of this object in the tree, null = no parentint getTreeExpandMaxDepth()
boolean providesTreeParentObjects()
<P extends PersistentDomainObject<P>> Collection<? extends PersistentDomainObject<?>> getTreeParentObjects(P parent)
P - the parent PDO typeparent - the parent object, null if no parentTableConfiguration<T> createTableConfiguration()
FxTableView<T> createTableView()
Tentackle - distributed, domain- and model-driven