T - the PDO typepublic interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>
extends org.tentackle.pdo.PdoHolder<T>, org.tentackle.pdo.DomainContextProvider
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.input.Dragboard |
createDragboard(javafx.scene.Node node)
Creates the dragboard for the pdo.
|
<C extends PdoEditor<T>> |
createEditor()
Creates a controller to edit or view this object.
|
<C extends 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.
|
javafx.scene.control.TableView<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 org.tentackle.pdo.PersistentDomainObject<P>> |
getToolTipText(P parent)
Gets the tooltip text with respect to the parent object this
object is displayed in a tree.
|
<P extends org.tentackle.pdo.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 org.tentackle.pdo.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 org.tentackle.pdo.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 |
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". |
ResourceBundle getBundle()
javafx.scene.image.ImageView createIcon()
boolean editorExists()
createEditor()<C extends PdoEditor<T>> C createEditor()
C - the controller typeFxRuntimeException - if editorExists() == falseboolean finderExists()
<C extends PdoFinder<T>> C createFinder()
C - the controller typeFxRuntimeException - 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 org.tentackle.pdo.PersistentDomainObject<P>> String getTreeText(P parent)
P - the parent PDO typeparent - is the parent object, null if no parent<P extends org.tentackle.pdo.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 org.tentackle.pdo.PersistentDomainObject<P>> Collection<? extends org.tentackle.pdo.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 org.tentackle.pdo.PersistentDomainObject<P>> Collection<? extends org.tentackle.pdo.PersistentDomainObject<?>> getTreeParentObjects(P parent)
P - the parent PDO typeparent - the parent object, null if no parentTableConfiguration<T> createTableConfiguration()
javafx.scene.control.TableView<T> createTableView()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.