|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro Menu API. The menu element is a subelement of the Tray UI element. It can be used to execute actions in the tray UI element. Each tray can contain at most one menu UI element . A menu element can contain any number of menu items (MenuItem objects) but no submenus.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Method Summary | |
void |
addItem(IWDMenuItem aMenuItem)
Adds the given Item at the end of the list of Items. |
void |
addItem(IWDMenuItem aMenuItem,
int index)
Adds the given Item at the specified index in the list of Items. |
void |
destroyAllItems()
Destroys all entries in the list of Items. |
IWDMenuItem |
getItem(int index)
Returns the Item at the given index. |
IWDMenuItem[] |
getItems()
Returns the list of Items. |
boolean |
hasItems()
Checks if there exist Items. |
int |
indexOfItem(IWDMenuItem aMenuItem)
Returns the index of the given element in the list of Items or -1 if it is not contained in the list. |
java.util.Iterator |
iterateItems()
Returns an iterator over the list of Items. |
int |
numberOfItems()
Returns the number of Items. |
void |
removeAllItems()
Removes all entries from the list of Items. |
IWDMenuItem |
removeItem(int index)
Removes the entry at the given index from the list of Items. |
IWDMenuItem |
removeItem(java.lang.String id)
Removes the entry with the given ID from the list of Items. |
void |
swapItems(int i,
int j)
Swaps the Items at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Method Detail |
public void addItem(IWDMenuItem aMenuItem)
aMenuItem - the Item to be added into the listgetItems()
public void addItem(IWDMenuItem aMenuItem,
int index)
aMenuItem - the Item to be added into the listindex - zero based index of the insertion position in the listgetItems()
public void swapItems(int i,
int j)
i - index of the first Item to swapj - index of the second Item to swapIndexOutOfBoundsException - If one of the indices is out of boundspublic IWDMenuItem[] getItems()
public IWDMenuItem getItem(int index)
public int indexOfItem(IWDMenuItem aMenuItem)
-1 if it is not contained in the list.public int numberOfItems()
getItems()public boolean hasItems()
true if there are Items;
false otherwise.getItems()public java.util.Iterator iterateItems()
getItems()public IWDMenuItem removeItem(int index)
index - zero based index of the deletion position in the listaddItem(IWDMenuItem),
getItems()public IWDMenuItem removeItem(java.lang.String id)
id - unique ID of the element to be deleted from the listaddItem(IWDMenuItem),
getItems()public void removeAllItems()
addItem(IWDMenuItem),
getItems()public void destroyAllItems()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||