com.remedy.arsys.api
Class CharMenuItemInfo
java.lang.Object
|
+--com.remedy.arsys.api.CharMenuItemInfo
- All Implemented Interfaces:
- java.lang.Cloneable
- public class CharMenuItemInfo
- extends java.lang.Object
- implements java.lang.Cloneable
Each CharMenuItemInfo represents an
individual menu item of a list menu. In this context, a menu item can be a value (a leaf-level
item) or another menu (a top- or intermediate-level item).
|
Method Summary |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
boolean |
equals(java.lang.Object anObject)
Use this method for checking equality. |
java.lang.Object |
getContents()
Returns value associated with the menu item. |
NameID |
getLabel()
Returns label that identifies the menu item. |
int |
getType()
Returns the type of character menu item. |
int |
hashCode()
This method can be used to populate a hash table. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CharMenuItemInfo
public CharMenuItemInfo(NameID label,
java.lang.String menuItem)
CharMenuItemInfo
public CharMenuItemInfo(NameID label,
CharMenuInfo childMenu)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Clone implementation that returns an Object with data cloned from self.
- Overrides:
clone in class java.lang.Object
getType
public int getType()
- Returns the type of character menu item. You can return the following constant values:
getLabel
public NameID getLabel()
- Returns label that identifies the menu item.
getContents
public java.lang.Object getContents()
- Returns value associated with the menu item. For leaf-level items, the
definition is a string containing the item text. For top- or intermediate-level
items, the definition is a pointer to a child menu.
equals
public boolean equals(java.lang.Object anObject)
- Use this method for checking equality. The result is true if and only
if the argument is not null, is of same type and represents the same
content.
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- This method can be used to populate a hash table.
Implicitly used method to test equality of objects.
- Overrides:
hashCode in class java.lang.Object