|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro Menu API. A menu is a (hierarchical) arrangement of menu items. A menu item may trigger a view controller action (MenuActionItem), represent a radio button (MenuRadioButton) or a check box (MenuCheckBox). Menu items may be visually grouped using separators (MenuSeparator).
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
Type Classification:
This interface is part of the Web Dynpro API, so applications may reference it or call any method of it, but they must not implement or extend it.
For a detailed explanation of API classification see the Web Dynpro Compatibility Guide| Field Summary | |
static boolean |
DEFAULT_ENABLED
Default value of the enabled property is true. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of the textDirection property is WDTextDirection.INHERIT. |
static String |
DEFAULT_TITLE
Default value of the title property is "". |
| Method Summary | |
void |
addItem(IWDMenuItem item)
Adds the given Item at the end of the Items list. |
void |
addItem(IWDMenuItem item,
int index)
Inserts the given Item at the specified (zero-based) index into the Items list. |
void |
bindEnabled(IWDAttributeInfo attributeInfo)
Binds the enabled property to the context attribute specified by the given attribute info. |
void |
bindEnabled(String path)
Binds the enabled property to the context attribute specified by the given path. |
String |
bindingOfEnabled()
Returns the binding path of the enabled property. |
String |
bindingOfTextDirection()
Returns the binding path of the textDirection property. |
String |
bindingOfTitle()
Returns the binding path of the title property. |
void |
bindTextDirection(IWDAttributeInfo attributeInfo)
Binds the textDirection property to the context attribute specified by the given attribute info. |
void |
bindTextDirection(String path)
Binds the textDirection property to the context attribute specified by the given path. |
void |
bindTitle(IWDAttributeInfo attributeInfo)
Binds the title property to the context attribute specified by the given attribute info. |
void |
bindTitle(String path)
Binds the title property to the context attribute specified by the given path. |
void |
destroyAllItems()
Destroys all elements in the Items list.
|
boolean |
getEnabled()
Returns the value of the enabled property.
|
IWDMenuItem |
getItem(int index)
Returns the Item at the given index. |
IWDMenuItem[] |
getItems()
Returns the Items list as an array.
|
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property.
|
String |
getTitle()
Returns the value of the title property.
|
boolean |
hasItems()
Returns true if there exists a Item. |
int |
indexOfItem(IWDMenuItem item)
Returns the index of the given element in the Items list,
returns -1 if the element is not in the list. |
Iterator |
iterateItems()
Returns an iterator over the Items list. |
int |
numberOfItems()
Returns the number of Items. |
void |
removeAllItems()
Removes all elements from the Items list.
|
IWDMenuItem |
removeItem(int index)
Removes the Item at the given index from the Items list.
|
IWDMenuItem |
removeItem(String id)
Removes the Item with the given ID from the Items list.
|
void |
setEnabled(boolean value)
Sets the enabled property to the given value. |
void |
setTextDirection(WDTextDirection value)
Sets the textDirection property to the given value. |
void |
setTitle(String value)
Sets the title property to the given value. |
void |
swapItems(int i,
int j)
Swaps the Items at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDMenuItem |
getMenu |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
destroy, getId, getView, requestFocus |
| Field Detail |
public static final boolean DEFAULT_ENABLED
enabled property is true.
public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection property is WDTextDirection.INHERIT.
public static final String DEFAULT_TITLE
title property is "".
| Method Detail |
public void bindEnabled(String path)
enabled property to the context attribute specified by the given path.
path - the context path of the attribute to which the enabled property will be boundpublic void bindEnabled(IWDAttributeInfo attributeInfo)
enabled property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the enabled property will be boundpublic String bindingOfEnabled()
enabled property.
enabled property is currently boundpublic boolean getEnabled()
enabled property.
The initial value is true.
enabled propertysetEnabled(boolean)public void setEnabled(boolean value)
enabled property to the given value.
value - the new value of the enabled propertygetEnabled()public void bindTextDirection(String path)
textDirection property to the context attribute specified by the given path.
path - the context path of the attribute to which the textDirection property will be boundpublic void bindTextDirection(IWDAttributeInfo attributeInfo)
textDirection property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the textDirection property will be boundpublic String bindingOfTextDirection()
textDirection property.
textDirection property is currently boundpublic WDTextDirection getTextDirection()
textDirection property.
The initial value is WDTextDirection.INHERIT.
textDirection propertysetTextDirection(WDTextDirection)public void setTextDirection(WDTextDirection value)
textDirection property to the given value.
value - the new value of the textDirection propertygetTextDirection()public void bindTitle(String path)
title property to the context attribute specified by the given path.
path - the context path of the attribute to which the title property will be boundpublic void bindTitle(IWDAttributeInfo attributeInfo)
title property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the title property will be boundpublic String bindingOfTitle()
title property.
title property is currently boundpublic String getTitle()
title property.
The initial value is "".
title propertysetTitle(String)public void setTitle(String value)
title property to the given value.
value - the new value of the title propertygetTitle()public void addItem(IWDMenuItem item)
Item at the end of the Items list.
item - the Item to be added to the listgetItems()
public void addItem(IWDMenuItem item,
int index)
Item at the specified (zero-based) index into the Items list.
item - the Item to be inserted into the listindex - (zero-based) insertion position in the listgetItems()
public void swapItems(int i,
int j)
Items at the given indices.
i - index of the first Item to swapj - index of the second Item to swap
IndexOutOfBoundsException - If one of the indices is out of boundspublic IWDMenuItem[] getItems()
Items list as an array.
A menu contains a list of menu items.
Items listpublic IWDMenuItem getItem(int index)
Item at the given index.
Item at the given indexpublic int indexOfItem(IWDMenuItem item)
Items list,
returns -1 if the element is not in the list.
public int numberOfItems()
Items.
ItemsgetItems()public boolean hasItems()
true if there exists a Item.
true if there exists a Item, otherwise returns falsegetItems()public Iterator iterateItems()
Items list.
Items listgetItems()public IWDMenuItem removeItem(int index)
Item at the given index from the Items list.
This does not destroy the removed element, i.e. it may be added again!
index - (zero-based) index of the removal position in the list
addItem(IWDMenuItem),
getItems()public IWDMenuItem removeItem(String id)
Item with the given ID from the Items list.
This does not destroy the removed element, i.e. it may be added again!
id - unique ID of the element to be removed from the list
addItem(IWDMenuItem),
getItems()public void removeAllItems()
Items list.
This does not destroy the removed elements, i.e. they may be added again!
addItem(IWDMenuItem),
getItems()public void destroyAllItems()
Items list.
Destroyed view elements do not exist any longer in their view, i.e. new elements may be
created with the same IDs.
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||