|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.jaxfront.core.ui.TreeNode
public class TreeNode
A tree node representation to use with a Swing Tree Model to visualize a single JAXFront Type as a tree entry.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
TreeNode(java.lang.Object userObject)
|
|
TreeNode(TreeModel model,
Type type)
Creates a TreeNode based on a type. |
Method Summary | |
---|---|
java.util.List |
getChildren()
|
java.lang.String |
getHelpText()
|
javax.swing.Icon |
getIcon()
Returns the icon of this tree node. |
int |
getPosition(TreeNode node)
Calculates and returns the position of the current node in the tree |
java.lang.String |
getToolTip()
Returns the tooltip for this tree node. |
Type |
getType()
Returns the JAXFront type belonging to this node. |
java.lang.String |
getVisualName()
Returns the visual tree name. |
java.lang.String |
getXPath()
|
boolean |
isCheckBoxSelected()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Refreshs the visual name and the icon. |
void |
release()
|
void |
releaseNode()
|
void |
setIcon(javax.swing.ImageIcon icon)
Sets an icon for this tree node. |
void |
setIsCheckBoxSelected(boolean isSelected)
|
void |
setModel(TreeModel model)
Sets the tree model for this node |
void |
setType(Type type)
|
boolean |
showCheckBox()
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TreeNode(java.lang.Object userObject)
public TreeNode(TreeModel model, Type type)
type
- building a tree node based on this typeMethod Detail |
---|
public void setType(Type type)
public java.lang.String getXPath()
public javax.swing.Icon getIcon()
public int getPosition(TreeNode node)
node
- the current node for which its tree position needs to be calculatedpublic Type getType()
public java.lang.String getVisualName()
public java.lang.String getToolTip()
public java.lang.String getHelpText()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void setIcon(javax.swing.ImageIcon icon)
icon
- a tree node iconpublic void setModel(TreeModel model)
model
- hodling tree modelpublic void releaseNode()
public void release()
public void setIsCheckBoxSelected(boolean isSelected)
public boolean isCheckBoxSelected()
public boolean showCheckBox()
public java.util.List getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |