|
|
|||||
| 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 |
| public static final int | ICON_DISPLAYED_FIRST
values 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 |
| public static final int | NAME_DISPLAYED_FIRST
|
| Constructor Summary |
| Leaf(Node father, String value)
Constructs a new Leaf with the specified father Node and label name |
| 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 |
| 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 |
| Method Summary |
| public boolean | equals(Leaf leaf)
Compares recursively the equality of two leaves |
| public Node | getFather()
Returns the father Node of this Leaf |
| public String | getIconName()
Returns the icon name associated to this Leaf. |
| public int | getMode()
Returns the displayed mode of this Leaf |
| public Object | getProperty()
Return sthe property associated to the Leaf |
| public String | getValue()
Returns the label name of the Leaf |
| public boolean | isSelectable()
Determines whether this leaf is selectable. |
| public boolean | isVisible()
Determines whether this Leaf is visible in the tree display. |
| public void | setFatherNode(Node father)
Sets the father Node of this Leaf |
| public void | setIconName(String iconName)
Sets the icon name associated to this Leaf. |
| public void | setProperty(Object property)
Set a property of the Leaf This property is used to store any data associated to the leaf |
| public void | setSelectable(boolean flag)
Sets whether or not this leaf can be selected. |
| public void | setValue(String value)
Sets the label name of the Leaf |
| public void | setVisible(boolean flag)
Shows or hides this leaf depending on the value of parameter flag. |
| Field Detail |
public static final int ICON_DISPLAYED_FIRST
values 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
public static final int NAME_DISPLAYED_FIRST
| Constructor Detail |
Leaf(Node father, String value)
Constructs a new Leaf with the specified father Node and label name
fathervalue
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
fathervalueiconNamemode
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
fathervalueiconNamemodevisible| Method Detail |
public boolean equals(Leaf leaf)
Compares recursively the equality of two leaves
leaf
public Node getFather()
Returns the father Node of this Leaf
public String getIconName()
Returns the icon name associated to this Leaf.
public int getMode()
Returns the displayed mode of this Leaf
public Object getProperty()
Return sthe property associated to the Leaf
public String getValue()
Returns the label name of the Leaf
public boolean isSelectable()
Determines whether this leaf is selectable.
public boolean isVisible()
Determines whether this Leaf is visible in the tree display.
public void setFatherNode(Node father)
Sets the father Node of this Leaf
father
public void setIconName(String iconName)
Sets the icon name associated to this Leaf.
iconName
public void setProperty(Object property)
Set a property of the Leaf
This property is used to store any data associated to the leaf
property
public void setSelectable(boolean flag)
Sets whether or not this leaf can be selected.
flag
public void setValue(String value)
Sets the label name of the Leaf
value
public void setVisible(boolean flag)
Shows or hides this leaf depending on the value of parameter flag.
flag