public class PdoTreeObject extends Object
PdoTree.| Constructor and Description |
|---|
PdoTreeObject(Object object,
Object parentObject)
Creates a tree object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ImageIcon |
getIcon()
Gets the icon.
|
Object |
getObject()
Gets the object wrapped by this tree object.
|
Class<?> |
getObjectClass()
Gets the class of the tree object.
|
Object |
getParentObject()
Gets the parent object.
|
String |
getToolTipText()
Gets the text for the tooltip.
|
String |
getTreeText()
Gets the text displayed in the tree for this object.
|
int |
hashCode() |
boolean |
isExpanded()
Gets the expanded state.
|
boolean |
isStopExpandPath()
Returns whether
PdoTree.doExpandPath should stop expansion (not treeWillExpand). |
boolean |
isStopTreeWillExpand()
Returns whether this object's node should be further expanded.
|
void |
setExpanded(boolean expanded)
Sets the expanded state.
|
void |
setIcon(ImageIcon icon)
Sets the icon.
|
void |
setObject(Object object)
Sets the object wrapped by this tree object.
|
void |
setStopExpandPath(boolean stopExpandPath)
Sets whether
PdoTree.doExpandPath should stop expansion (not treeWillExpand). |
void |
setStopTreeWillExpand(boolean stopExpansion)
Defines whether this object's node should be further expanded.
|
void |
setTreeText(String treeText)
Sets the text displayed in the tree for this object.
|
String |
toString() |
public Object getParentObject()
public ImageIcon getIcon()
public void setIcon(ImageIcon icon)
icon - the icon, null if nonepublic String getToolTipText()
public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded - true if node is expandedpublic Class<?> getObjectClass()
public Object getObject()
public void setObject(Object object)
object - the wrapped objectpublic boolean isStopTreeWillExpand()
public void setStopTreeWillExpand(boolean stopExpansion)
stopExpansion - true to stop expansionpublic boolean isStopExpandPath()
PdoTree.doExpandPath should stop expansion (not treeWillExpand).
The user will still be able to expand the node by clicking on it!PdoTree.doExpandPath(int, int, org.tentackle.pdo.PersistentDomainObject, javax.swing.tree.TreePath)public void setStopExpandPath(boolean stopExpandPath)
PdoTree.doExpandPath should stop expansion (not treeWillExpand).
The user will still be able to expand the node by clicking on it!stopExpandPath - true if stop expansionPdoTree.doExpandPath(int, int, org.tentackle.pdo.PersistentDomainObject, javax.swing.tree.TreePath)public String getTreeText()
public void setTreeText(String treeText)
treeText - the tree textTentackle - a domain driven enterprise framework