|
|
Package com.dassault_systemes.catweb.base.util |
Class Leaf
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catweb.base.util.Leaf
Class Location |
Class Description |
public class Leaf
item of a tree
Field Summary |
int | ICON_DISPLAYED_FIRST |
int | NAME_DISPLAYED_FIRST |
Constructor Summary |
Leaf(Node father, String value) |
Leaf() |
Leaf(Node father, String value, String iconName, int mode) |
Leaf(Node father, String value, String iconName, int mode, boolean visible) |
Method Summary |
void | setValue(String value) |
String | getValue() |
void | setProperty(Object property) |
Object | getProperty() |
void | setFatherNode(Node father) |
Node | getFather() |
int | getMode() |
String | getIconName() |
void | setIconName(String iconName) |
boolean | isVisible() |
void | setVisible(boolean flag) |
void | setSelectable(boolean flag) |
boolean | isSelectable() |
boolean | equals(Leaf leaf) |
Field Detail |
int ICON_DISPLAYED_FIRSTvalues for display mode: The default value of display mode is ICON_DISPLAYED_FIRST ICON_DISPLAYED_FIRST : the icon is displayed before the name NAME_DISPLAYED_FIRST : the name is displayed before the icon
int NAME_DISPLAYED_FIRST
Constructor Detail |
Leaf(Node father, String value)Constructs a new Leaf with the specified father Node and label name
father
value
Leaf()Constructs a new Leaf with no father, no icon and an empty label
Leaf(Node father, String value, String iconName, int mode)Constructs a new Leaf with the specified father Node, label, iconName and with the specified display mode
father
value
iconName
mode
Leaf(Node father, String value, String iconName, int mode, boolean visible)Constructs a new Leaf with the specified father Node, label, iconName and with the specified display mode
father
value
iconName
mode
visible
Method Detail |
void setValue(String value)Sets the label name of the Leaf
value
String getValue()Returns the label name of the Leaf
void setProperty(Object property)Set a property of the Leaf This property is used to store any data associated to the leaf
property
Object getProperty()Return sthe property associated to the Leaf
void setFatherNode(Node father)Sets the father Node of this Leaf
father
Node getFather()Returns the father Node of this Leaf
int getMode()Returns the displayed mode of this Leaf
String getIconName()Returns the icon name associated to this Leaf.
void setIconName(String iconName)Sets the icon name associated to this Leaf.
iconName
boolean isVisible()Determines whether this Leaf is visible in the tree display.
void setVisible(boolean flag)Shows or hides this leaf depending on the value of parameter flag.
flag
void setSelectable(boolean flag)Sets whether or not this leaf can be selected.
flag
boolean isSelectable()Determines whether this leaf is selectable.
boolean equals(Leaf leaf)Compares recursively the equality of two leaves
leaf