T - the PDO typepublic interface GuiProvider<T extends PersistentDomainObject<T>> extends PdoHolder<T>, DomainContextProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTreeChildObjects()
Determines whether this object may have child objects that should
be visible in a navigatable tree.
|
boolean |
allowsTreeParentObjects()
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. |
PdoEditDialog<T> |
createDialog(Component comp,
boolean modal)
Creates a new dialog to edit this object.
|
FormPanel |
createPanel()
Creates a panel to edit or view this object.
|
PdoSearch<T> |
createPdoSearch()
Creates the search plugin for the search dialog.
|
boolean |
dropTransferable(Transferable transferable)
Drops a transferable on this object.
|
FormTableEntry<T> |
getFormTableEntry()
Gets the table entry for viewing lists of this object
in a
FormTable. |
String |
getFormTableName()
Gets the tablename used in to initialize the table's gui.
|
ImageIcon |
getIcon()
Gets the PDO's icon.
The icon is displayed in trees, for example. |
T |
getPanelObject()
Gets the effective object that should be edited or viewed in a panel.
|
String |
getToolTipText()
Gets the tooltip to be displayed for an object in a tree.
|
String |
getToolTipText(Object parent)
Gets the tooltip text with respect to the parent object this
object is displayed in a tree.
|
PdoTransferable<T> |
getTransferable()
Gets the
Transferable for this object.Used for drag and drop. |
Collection |
getTreeChildObjects()
Gets all childs of this objects that should be visible to the user
in a navigatable object tree.
|
Collection |
getTreeChildObjects(Object parentObject)
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. |
org.tentackle.misc.ObjectFilter<T> |
getTreeFilter()
Gets the optional tree-view filter.
The filter is used in PdoNavigationPanel to
show only certain objects in the tree view as root nodes. |
Collection |
getTreeParentObjects()
Gets the parents of this object.
|
Collection |
getTreeParentObjects(Object parentObject)
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.
|
String |
getTreeText()
Gets the text to be displayed in trees for this object.
|
String |
getTreeText(Object parent)
Gets the tree text with respect to the parent object this
object is displayed in a tree.
|
boolean |
panelExists()
Determines whether a panel exists to edit or view this object.
|
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, opImageIcon getIcon()
boolean panelExists()
createPanel()FormPanel createPanel()
panelExists()PdoEditDialog<T> createDialog(Component comp, boolean modal)
comp - the component to determine the window owner, null if nonemodal - true if dialog should be modalT getPanelObject()
PdoTransferable<T> getTransferable()
Transferable for this object.PdoTransferableboolean dropTransferable(Transferable transferable)
transferable - the TransferableT getTreeRoot()
PdoTreeString getTreeText()
PdoTreeString getTreeText(Object parent)
parent - is the parent object, null if no parentPdoTreeString getToolTipText()
PdoTreeString getToolTipText(Object parent)
parent - is the parent object, null if no parentPdoTreeboolean stopTreeExpansion()
PdoTreeorg.tentackle.misc.ObjectFilter<T> getTreeFilter()
PdoNavigationPanel to
show only certain objects in the tree view as root nodes.
Nice for hierarchical data.boolean allowsTreeChildObjects()
PdoTreeCollection getTreeChildObjects()
PdoTreeCollection getTreeChildObjects(Object parentObject)
parentObject - the parent object of this object in the tree, null = no parentPdoTreeint getTreeExpandMaxDepth()
PdoTreeboolean allowsTreeParentObjects()
PdoTreeCollection getTreeParentObjects()
PdoTree,
allowsTreeParentObjects()Collection getTreeParentObjects(Object parentObject)
parentObject - the parent object, null if no parentPdoTreeFormTableEntry<T> getFormTableEntry()
FormTable.getFormTableName()String getFormTableName()
getFormTableEntry()Tentackle - a domain driven enterprise framework