T - the PDOs classpublic class DefaultGuiProvider<T extends PersistentDomainObject<T>> extends Object implements GuiProvider<T>
GuiProvider.| Constructor and Description |
|---|
DefaultGuiProvider(T pdo)
Creates a default GUI provider.
|
| 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.
|
DomainContext |
getDomainContext() |
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.
|
T |
getPdo() |
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.
|
void |
setPdo(T pdo) |
boolean |
stopTreeExpansion()
Determines whether tree explansion should stop at this object.
Sometimes treechilds should not be expanded if in a recursive "expand all". |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiton, oppublic DefaultGuiProvider(T pdo)
pdo - the PDOpublic T getPdo()
getPdo in interface PdoHolder<T extends PersistentDomainObject<T>>public void setPdo(T pdo)
setPdo in interface PdoHolder<T extends PersistentDomainObject<T>>public DomainContext getDomainContext()
getDomainContext in interface DomainContextProviderpublic ImageIcon getIcon()
GuiProvidergetIcon in interface GuiProvider<T extends PersistentDomainObject<T>>public boolean panelExists()
GuiProviderpanelExists in interface GuiProvider<T extends PersistentDomainObject<T>>GuiProvider.createPanel()public FormPanel createPanel()
GuiProvidercreatePanel in interface GuiProvider<T extends PersistentDomainObject<T>>GuiProvider.panelExists()public PdoEditDialog<T> createDialog(Component comp, boolean modal)
GuiProvidercreateDialog in interface GuiProvider<T extends PersistentDomainObject<T>>comp - the component to determine the window owner, null if nonemodal - true if dialog should be modalpublic T getPanelObject()
GuiProvidergetPanelObject in interface GuiProvider<T extends PersistentDomainObject<T>>public PdoTransferable<T> getTransferable()
GuiProviderTransferable for this object.getTransferable in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTransferablepublic boolean dropTransferable(Transferable transferable)
GuiProviderdropTransferable in interface GuiProvider<T extends PersistentDomainObject<T>>transferable - the Transferablepublic PdoSearch<T> createPdoSearch()
GuiProvidercreatePdoSearch in interface GuiProvider<T extends PersistentDomainObject<T>>public FormTableEntry<T> getFormTableEntry()
GuiProviderFormTable.getFormTableEntry in interface GuiProvider<T extends PersistentDomainObject<T>>GuiProvider.getFormTableName()public String getFormTableName()
GuiProvidergetFormTableName in interface GuiProvider<T extends PersistentDomainObject<T>>GuiProvider.getFormTableEntry()public org.tentackle.misc.ObjectFilter<T> getTreeFilter()
GuiProviderPdoNavigationPanel to
show only certain objects in the tree view as root nodes.
Nice for hierarchical data.getTreeFilter in interface GuiProvider<T extends PersistentDomainObject<T>>public boolean allowsTreeChildObjects()
GuiProviderallowsTreeChildObjects in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic Collection getTreeChildObjects()
GuiProvidergetTreeChildObjects in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic Collection getTreeChildObjects(Object parentObject)
GuiProvidergetTreeChildObjects in interface GuiProvider<T extends PersistentDomainObject<T>>parentObject - the parent object of this object in the tree, null = no parentPdoTreepublic int getTreeExpandMaxDepth()
GuiProvidergetTreeExpandMaxDepth in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic boolean allowsTreeParentObjects()
GuiProviderallowsTreeParentObjects in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic Collection getTreeParentObjects()
GuiProvidergetTreeParentObjects in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTree,
GuiProvider.allowsTreeParentObjects()public Collection getTreeParentObjects(Object parentObject)
GuiProvidergetTreeParentObjects in interface GuiProvider<T extends PersistentDomainObject<T>>parentObject - the parent object, null if no parentPdoTreepublic T getTreeRoot()
GuiProvidergetTreeRoot in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic String getTreeText()
GuiProvidergetTreeText in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic String getTreeText(Object parent)
GuiProvidergetTreeText in interface GuiProvider<T extends PersistentDomainObject<T>>parent - is the parent object, null if no parentPdoTreepublic String getToolTipText()
GuiProvidergetToolTipText in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreepublic String getToolTipText(Object parent)
GuiProvidergetToolTipText in interface GuiProvider<T extends PersistentDomainObject<T>>parent - is the parent object, null if no parentPdoTreepublic boolean stopTreeExpansion()
GuiProviderstopTreeExpansion in interface GuiProvider<T extends PersistentDomainObject<T>>PdoTreeTentackle - a domain driven enterprise framework