Package jadex.commons.gui.jtreetable
Class SetTreeTableNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- jadex.commons.gui.jtreetable.DefaultTreeTableNode
-
- jadex.commons.gui.jtreetable.SetTreeTableNode
-
- All Implemented Interfaces:
TreeTableNode
,java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
public class SetTreeTableNode extends DefaultTreeTableNode
A tree table node, that has as name its number.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jadex.commons.gui.jtreetable.DefaultTreeTableNode
model, type, values
-
-
Constructor Summary
Constructors Constructor Description SetTreeTableNode(TreeTableNodeType type, java.util.Map values)
Create a tree table node with initial values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getUserObject()
Get the user value.java.lang.Object
getValue(int column)
Get the value at a specific column.java.lang.String
toString()
Get the node name.-
Methods inherited from class jadex.commons.gui.jtreetable.DefaultTreeTableNode
getChild, getChildren, getModel, getType, getValues, insert, instanceOf, remove, setModel, setValue, setValues
-
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, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Constructor Detail
-
SetTreeTableNode
public SetTreeTableNode(TreeTableNodeType type, java.util.Map values)
Create a tree table node with initial values.- Parameters:
type
- The node type identifier.values
- The initial values.
-
-
Method Detail
-
getValue
public java.lang.Object getValue(int column)
Get the value at a specific column.- Specified by:
getValue
in interfaceTreeTableNode
- Overrides:
getValue
in classDefaultTreeTableNode
- Parameters:
column
- The column.- Returns:
- The value or empty string, when column index is too large.
-
getUserObject
public java.lang.Object getUserObject()
Get the user value.- Overrides:
getUserObject
in classjavax.swing.tree.DefaultMutableTreeNode
- Returns:
- The value.
-
toString
public java.lang.String toString()
Get the node name.- Overrides:
toString
in classDefaultTreeTableNode
- Returns:
- The name of the node.
-
-