Package org.apache.pivot.wtk.content
Class TreeNode
- java.lang.Object
-
- org.apache.pivot.wtk.content.BaseContent
-
- org.apache.pivot.wtk.content.UserContent
-
- org.apache.pivot.wtk.content.TreeNode
-
- Direct Known Subclasses:
TreeBranch
public class TreeNode extends UserContent
Default tree node implementation.
-
-
Field Summary
-
Fields inherited from class org.apache.pivot.wtk.content.UserContent
userData
-
Fields inherited from class org.apache.pivot.wtk.content.BaseContent
icon, text
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeBranch
getParent()
protected void
setParent(TreeBranch parent)
java.lang.String
toString()
-
Methods inherited from class org.apache.pivot.wtk.content.UserContent
getUserData, setUserData
-
-
-
-
Constructor Detail
-
TreeNode
public TreeNode()
-
TreeNode
public TreeNode(Image icon)
-
TreeNode
public TreeNode(java.lang.String text)
-
TreeNode
public TreeNode(Image icon, java.lang.String text)
-
TreeNode
public TreeNode(BaseContent content)
-
-
Method Detail
-
getParent
public TreeBranch getParent()
-
setParent
protected void setParent(TreeBranch parent)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-