|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNode
Defines the requirements for an object that can be used as a tree node in a
JTree. This interface adds the getUserObject() to
Swing interface, which seems to have been forgotten in J2SE.
| utility/geotk-utility (download) | View source code for this class |
| Method Summary | |
|---|---|
Enumeration<? extends TreeNode> |
children()
Returns the children of this node as an Enumeration. |
Object |
getUserObject()
Returns this node's user object. |
String |
toString()
Returns a string representation of this node suitable for a user interface. |
| Methods inherited from interface TreeNode |
|---|
getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
| Method Detail |
|---|
Object getUserObject()
Enumeration<? extends TreeNode> children()
Enumeration.
children in interface TreeNodeString toString()
JTree uses this method for formatting the text to display
in the widget.
toString in class ObjectJTree for this node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||