public abstract class Menu extends ObjectBase implements Cloneable
Menu
class and methods are used to represent the properties of menu objects.Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
List<MenuItem> |
getContent() |
String |
getKey()
Returns the unique identifier for menu.
|
int |
getMenuType() |
ObjectPropertyMap |
getProperties()
Returns all property information of menu.
|
int |
getRefreshCode()
Returns when the menu is refreshed.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setContent(List<MenuItem> content) |
void |
setKey(String key)
Sets the unique identifier for menu.
|
void |
setProperties(ObjectPropertyMap props)
Sets property information of menu.
|
void |
setRefreshCode(int refreshCode)
Sets when the menu is refreshed.
|
String |
toString()
Returns a string description of the object.
|
appendDiaryText, clear, getChangeFlags, getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, setChangeFlags, setDiary, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner, setPermissions
public Menu()
public Menu(String menuName)
public void setRefreshCode(int refreshCode)
refreshCode
- This parameter enables you to balance menu consistency with performance. Use one of the following
values to indicate when the menu is refreshed:
Constants.AR_MENU_REFRESH_CONNECT
).
Constants.AR_MENU_REFRESH_OPEN
).
Constants.AR_MENU_REFRESH_INTERVAL
).
public int getRefreshCode()
public ObjectPropertyMap getProperties()
public void setProperties(ObjectPropertyMap props)
public String getKey()
public void setKey(String key)
public int getMenuType()
public Object clone() throws CloneNotSupportedException
clone
in class ObjectBase
CloneNotSupportedException
public boolean equals(Object obj)
equals
in class ObjectBase
obj
- the object that we are comparing topublic int hashCode()
hashCode
in class ObjectBase
public String toString()
toString
in class ObjectBase
? Copyright 2013 BMC Software, Inc.