org.safs.rational
Class RTreeNode
java.lang.Object
org.safs.TreeNode
org.safs.rational.RTreeNode
public class RTreeNode
- extends TreeNode
Purpose: Handle the status of MenuItem
- Since:
- APR 15, 2008
APR 15, 2008 (LeiWang) Original Release
Fields inherited from class org.safs.TreeNode |
childrenCounter, siblingCounter, STATUS_BARBREAK, STATUS_BITMAP, STATUS_BREAK, STATUS_CHECKED, STATUS_DEFAULT, STATUS_DISABLED, STATUS_ENABLED, STATUS_GRAYED, STATUS_HILITED, STATUS_NORMAL, STATUS_SEPARATOR, STATUS_SUBMENU_NUM, STATUS_UNCHECKED, STATUS_UNGRAYED, STATUS_UNHILITEED, userObject |
Constructor Summary |
RTreeNode()
|
RTreeNode(java.lang.Object userObject)
|
RTreeNode(java.lang.Object userObject,
int siblingCounter,
int childrenCounter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROPERTY_ENABLED
public static final java.lang.String PROPERTY_ENABLED
- See Also:
- Constant Field Values
PROPERTY_SELECTED
public static final java.lang.String PROPERTY_SELECTED
- See Also:
- Constant Field Values
PROPERTY_ICON
public static final java.lang.String PROPERTY_ICON
- See Also:
- Constant Field Values
RTreeNode
public RTreeNode()
RTreeNode
public RTreeNode(java.lang.Object userObject)
RTreeNode
public RTreeNode(java.lang.Object userObject,
int siblingCounter,
int childrenCounter)
getNodeLabel
public java.lang.String getNodeLabel()
- Description copied from class:
TreeNode
Note: To be overrided by it's subclass
- Overrides:
getNodeLabel
in class TreeNode
- Returns:
- A String which describes this node. For example, the text "File" on the menu.
isEnabled
protected boolean isEnabled()
- Specified by:
isEnabled
in class TreeNode
- Returns:
- boolean, Whether the menuItem is enabled
isChecked
protected boolean isChecked()
- Specified by:
isChecked
in class TreeNode
- Returns:
- boolean, Whether this menuItem is selected
containsBitMap
protected boolean containsBitMap()
- Specified by:
containsBitMap
in class TreeNode
- Returns:
- boolean, Whether this menuItem contains an Icon
isSeparator
protected boolean isSeparator()
- Specified by:
isSeparator
in class TreeNode
- Returns:
- boolean, Whether this is a Separator
subMenuCountOk
protected boolean subMenuCountOk(java.lang.String subMenuNumber)
- Specified by:
subMenuCountOk
in class TreeNode
- Parameters:
subMenuNumber,
- String, Represent the number of submenus under this menu
- Returns:
- boolean
main
public static void main(java.lang.String[] args)