|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.MenuItem
public class MenuItem
Each MenuItem
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).
Nested Class Summary | |
---|---|
static class |
MenuItem.MENUTYPE
|
Field Summary | |
---|---|
static char |
AR_DEF_MENU_COMMENT
|
static String |
AR_DEF_MENU_DELIMITER
|
static String |
AR_DEF_MENU_KEYWORD_ESCAPE
|
static String |
AR_DEF_MENU_KEYWORD_NO_ESCAPE
|
static char |
AR_DEF_MENU_LINE_INDENT
|
Constructor Summary | |
---|---|
MenuItem()
|
|
MenuItem(String label,
List<MenuItem> childMenu)
|
|
MenuItem(String label,
String menuItem)
|
Method Summary | |
---|---|
static List<MenuItem> |
bufferToMenuItemList(Scanner scanBuffer)
This method converts contents of a buffer/file into list menu structure |
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
static List<MenuItem> |
decode(String encoded)
This method converts contents of a string into list menu structure |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
Object |
getContent()
Returns value associated with the menu item. |
String |
getLabel()
Returns label that identifies the menu item. |
List<MenuItem> |
getSubMenu()
|
int |
getType()
Returns the type of character menu item. |
String |
getValue()
|
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setLabel(String label)
Sets label that identifies the menu item. |
void |
setSubMenu(List<MenuItem> subMenu)
|
void |
setSubMenu(MenuItem menuItem)
|
void |
setValue(String value)
|
String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String AR_DEF_MENU_DELIMITER
public static char AR_DEF_MENU_COMMENT
public static char AR_DEF_MENU_LINE_INDENT
public static String AR_DEF_MENU_KEYWORD_ESCAPE
public static String AR_DEF_MENU_KEYWORD_NO_ESCAPE
Constructor Detail |
---|
public MenuItem()
public MenuItem(String label, String menuItem)
public MenuItem(String label, List<MenuItem> childMenu)
Method Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int getType()
Constants.AR_MENU_TYPE_NONE
).
Constants.AR_MENU_TYPE_VALUE
).
Constants.AR_MENU_TYPE_MENU
).
public String getLabel()
public void setLabel(String label)
public Object getContent()
public List<MenuItem> getSubMenu()
public void setSubMenu(List<MenuItem> subMenu)
public void setSubMenu(MenuItem menuItem)
public String getValue()
public void setValue(String value)
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public int hashCode()
hashCode
in class Object
public static List<MenuItem> decode(String encoded) throws ARException
ARException
public static List<MenuItem> bufferToMenuItemList(Scanner scanBuffer) throws ARException
ARException
public String toString()
toString
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |