|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.content.TreeNode
public class TreeNode
Default tree node implementation.
Constructor Summary | |
---|---|
TreeNode()
|
|
TreeNode(Image icon)
|
|
TreeNode(Image icon,
String text)
|
|
TreeNode(String text)
|
Method Summary | |
---|---|
Image |
getIcon()
|
String |
getText()
|
Object |
getUserData()
|
void |
setIcon(Image icon)
|
void |
setIcon(String iconName)
Sets the tree node's icon by resource name. |
void |
setIcon(URL iconURL)
Sets the tree node's icon by URL. |
void |
setText(String text)
|
void |
setUserData(Object userData)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeNode()
public TreeNode(Image icon)
public TreeNode(String text)
public TreeNode(Image icon, String text)
Method Detail |
---|
public Image getIcon()
public void setIcon(Image icon)
public void setIcon(URL iconURL)
Note: Using this signature will cause an entry to be added in the application context's resource cache if one does not already exist.
iconURL
- The location of the icon to set.public void setIcon(String iconName)
Note: Using this signature will cause an entry to be added in the application context's resource cache if one does not already exist.
iconName
- The resource name of the icon to set.public String getText()
public void setText(String text)
public Object getUserData()
public void setUserData(Object userData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |