java.lang.Object javax.swing.tree.DefaultMutableTreeNode net.sourceforge.wisim.controller.IconNode
All Implemented Interfaces: Cloneable, MutableTreeNode, Serializable
1.0
public IconNode() { this(null); }
{ this(null); }
public IconNode(Object userObject) { this(userObject, true, null); }
{ this(userObject, true, null); }
userObject
public IconNode(Object userObject, boolean allowsChildren, Icon icon) { super(userObject, allowsChildren); this.icon = icon; }
{ super(userObject, allowsChildren); this.icon = icon; }
allowsChildren
icon
public Icon getIcon() { return icon; }
{ return icon; }
public String getIconName() { String str = userObject.toString(); int index = str.lastIndexOf("."); if (index != -1) { return str.substring(++index); } else { return iconName; } }
{ String str = userObject.toString(); int index = str.lastIndexOf("."); if (index != -1) { return str.substring(++index); } else { return iconName; } }
public void setIcon(Icon icon) { this.icon = icon; }
{ this.icon = icon; }
public void setIconName(String name) { iconName = name; }
{ iconName = name; }