T - the PDOs classpublic class DefaultGuiProvider<T extends org.tentackle.pdo.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 |
|---|---|
javafx.scene.input.Dragboard |
createDragboard()
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.
|
boolean |
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.
|
org.tentackle.pdo.DomainContext |
getDomainContext() |
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.
|
<S extends org.tentackle.pdo.PersistentDomainObject<S>> |
getTreeChildObjects()
Gets all childs of this objects that should be visible to the user
in a navigatable object tree.
|
<S extends org.tentackle.pdo.PersistentDomainObject<S>> |
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. |
<S extends org.tentackle.pdo.PersistentDomainObject<S>> |
getTreeParentObjects()
Gets the parents of this object.
|
<S extends org.tentackle.pdo.PersistentDomainObject<S>> |
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 |
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. |
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() |
public DefaultGuiProvider(T pdo)
pdo - the PDOpublic ResourceBundle getBundle()
GuiProvidergetBundle in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public T getPdo()
public void setPdo(T pdo)
public org.tentackle.pdo.DomainContext getDomainContext()
getDomainContext in interface org.tentackle.pdo.DomainContextProviderpublic javafx.scene.image.ImageView createIcon()
GuiProvidercreateIcon in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public boolean editorExists()
GuiProvidereditorExists in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>GuiProvider.createEditor()public <C extends PdoEditor<T>> C createEditor()
GuiProvidercreateEditor in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>C - the controller typepublic boolean finderExists()
GuiProviderfinderExists in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public <C extends PdoFinder<T>> C createFinder()
GuiProvidercreateFinder in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>C - the controller typepublic javafx.scene.input.Dragboard createDragboard()
GuiProvidercreateDragboard in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public boolean dropDragboard(javafx.scene.input.Dragboard dragbord)
GuiProviderdropDragboard in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>dragbord - the dragboardpublic TableConfiguration<T> createTableConfiguration()
GuiProvidercreateTableConfiguration in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public javafx.scene.control.TableView<T> createTableView()
GuiProvidercreateTableView in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public boolean providesTreeChildObjects()
GuiProviderprovidesTreeChildObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public <S extends org.tentackle.pdo.PersistentDomainObject<S>> Collection<S> getTreeChildObjects()
GuiProvidergetTreeChildObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>S - the item typepublic <S extends org.tentackle.pdo.PersistentDomainObject<S>> Collection<S> getTreeChildObjects(Object parentObject)
GuiProvidergetTreeChildObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>S - the item typeparentObject - the parent object of this object in the tree, null = no parentpublic int getTreeExpandMaxDepth()
GuiProvidergetTreeExpandMaxDepth in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public boolean providesTreeParentObjects()
GuiProviderprovidesTreeParentObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public <S extends org.tentackle.pdo.PersistentDomainObject<S>> Collection<S> getTreeParentObjects()
GuiProvidergetTreeParentObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>S - the item typeGuiProvider.providesTreeParentObjects()public <S extends org.tentackle.pdo.PersistentDomainObject<S>> Collection<S> getTreeParentObjects(Object parentObject)
GuiProvidergetTreeParentObjects in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>S - the item typeparentObject - the parent object, null if no parentpublic T getTreeRoot()
GuiProvidergetTreeRoot in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public String getTreeText()
GuiProvidergetTreeText in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public String getTreeText(Object parent)
GuiProvidergetTreeText in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>parent - is the parent object, null if no parentpublic String getToolTipText()
GuiProvidergetToolTipText in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public String getToolTipText(Object parent)
GuiProvidergetToolTipText in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>parent - is the parent object, null if no parentpublic boolean stopTreeExpansion()
GuiProviderstopTreeExpansion in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public javafx.scene.control.TreeItem<T> createTreeItem()
GuiProvidercreateTreeItem in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>public javafx.scene.control.TreeCell<T> createTreeCell()
GuiProvidercreateTreeCell in interface GuiProvider<T extends org.tentackle.pdo.PersistentDomainObject<T>>Copyright © 2016 Krake Softwaretechnik. All rights reserved.