org.safs.rational
Class DotNetMenuTreeNode
java.lang.Object
org.safs.rational.MenuTreeNode
org.safs.rational.DotNetMenuTreeNode
public class DotNetMenuTreeNode
- extends MenuTreeNode
Purpose: Handle the status of DotNet MenuItem
- Since:
- JUL 28, 2008
JUL 28, 2008 (LeiWang) Original Release
| Fields inherited from class org.safs.rational.MenuTreeNode |
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 |
| 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
DotNetMenuTreeNode
public DotNetMenuTreeNode()
DotNetMenuTreeNode
public DotNetMenuTreeNode(java.lang.Object userObject)
DotNetMenuTreeNode
public DotNetMenuTreeNode(java.lang.Object userObject,
int siblingCounter,
int childrenCounter)
getNodeLabel
public java.lang.String getNodeLabel()
- Description copied from class:
MenuTreeNode
Note: To be overrided by it's subclass
- Overrides:
getNodeLabel in class MenuTreeNode
- Returns:
- A String which describes this node. For example, the text "File" on the menu.
containsBitMap
protected boolean containsBitMap()
- Specified by:
containsBitMap in class MenuTreeNode
- Returns:
- boolean, Whether this menuItem contains an Icon
isChecked
protected boolean isChecked()
- Specified by:
isChecked in class MenuTreeNode
- Returns:
- boolean, Whether this menuItem is selected
isEnabled
protected boolean isEnabled()
- Specified by:
isEnabled in class MenuTreeNode
- Returns:
- boolean, Whether the menuItem is enabled
isSeparator
protected boolean isSeparator()
- Note: Only works for ToolStripSeparator and its subclass
- Specified by:
isSeparator in class MenuTreeNode
- Returns:
- boolean, Whether this is a Separator