|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.config.MenuItem
Allow create menu items which can be related to a UWL DisplayAttribute. Example: <DisplayAttribute name="priority" type ="user" ...> <Menu> <MenuItem name="Low" actionRef="priorityLow" referenceBundle="menu_priority_low" /> <MenuItem name="Normal" actionRef="priorityNormal" referenceBundle="menu_priority_normal" /> <MenuItem name="High" actionRef="priorityHigh" referenceBundle="menu_priority_high" /> </Menu> </DisplayAttribute>
| Constructor Summary | |
MenuItem(String name,
String actionRef)
Create a MenuItem with a unique name and the corresponding action name for this menuitem |
|
| Method Summary | |
String |
getActionRef()
Get the Action name. |
Descriptions |
getDescriptions()
Get display text for this menu item This could be null, in which case text from the Action attached has to be taken |
String |
getLongText(Locale locale)
Get the tooltip for this menu item |
String |
getName()
Get the unique ID for this menu item. |
String |
getReferenceBundle()
Used Internally |
String |
getShortText(Locale locale)
Get the menu display text. |
MenuItemCollection |
getSubMenuItemCollection()
Get access to the sub MenuItemCollection |
MenuItem[] |
getSubMenuItems()
This will return all the sub MenuItem which are under this Menutem. |
boolean |
hasSubMenus()
If there are submenu under this menu this will return true. |
void |
setActionRef(String string)
Used internally to allow specifing action name in the xml file. |
void |
setDescriptions(Descriptions descriptions)
Set the Description for the display text. |
void |
setName(String string)
Set the unique ID for this menu item |
void |
setReferenceBundle(String string)
Used Internally |
void |
setSubMenuItemCollection(MenuItemCollection c)
Set the sub menu with a list of ItemMenu using a MenuCollection. |
void |
setSubMenuItems(ArrayList list)
Set the sub Menu with the list of MenuItems |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MenuItem(String name,
String actionRef)
name - actionRef - | Method Detail |
public boolean hasSubMenus()
public MenuItem[] getSubMenuItems()
public void setSubMenuItems(ArrayList list)
list - public MenuItemCollection getSubMenuItemCollection()
getSubMenuItems()public void setSubMenuItemCollection(MenuItemCollection c)
c - Passing in null to create an empty collectionsetSubMenuItems(ArrayList)public String getShortText(Locale locale)
locale -
public String getLongText(Locale locale)
locale -
public Descriptions getDescriptions()
public String getName()
public void setDescriptions(Descriptions descriptions)
descriptions - public void setName(String string)
string - public String getActionRef()
public void setActionRef(String string)
string - public String getReferenceBundle()
public void setReferenceBundle(String string)
string -
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||