|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro MenuBar API. A menu bar.
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 WDMenuBarDesign |
DEFAULT_DESIGN
Default value of the design property is WDMenuBarDesign.STANDARD. |
static String |
DEFAULT_WIDTH
Default value of the width property is "". |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addMenu(IWDMenu menu)
Adds the given Menu at the end of the Menus list. |
void |
addMenu(IWDMenu menu,
int index)
Inserts the given Menu at the specified (zero-based) index into the Menus list. |
void |
bindDesign(IWDAttributeInfo attributeInfo)
Binds the design property to the context attribute specified by the given attribute info. |
void |
bindDesign(String path)
Binds the design property to the context attribute specified by the given path. |
String |
bindingOfDesign()
Returns the binding path of the design property. |
String |
bindingOfWidth()
Returns the binding path of the width property. |
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds the width property to the context attribute specified by the given attribute info. |
void |
bindWidth(String path)
Binds the width property to the context attribute specified by the given path. |
void |
destroyAllMenus()
Destroys all elements in the Menus list.
|
WDMenuBarDesign |
getDesign()
Returns the value of the design property.
|
IWDMenu |
getMenu(int index)
Returns the Menu at the given index. |
IWDMenu[] |
getMenus()
Returns the Menus list as an array |
String |
getWidth()
Returns the value of the width property.
|
boolean |
hasMenus()
Returns true if there exists a Menu. |
int |
indexOfMenu(IWDMenu menu)
Returns the index of the given element in the Menus list,
returns -1 if the element is not in the list. |
Iterator |
iterateMenus()
Returns an iterator over the Menus list. |
int |
numberOfMenus()
Returns the number of Menus. |
void |
removeAllMenus()
Removes all elements from the Menus list.
|
IWDMenu |
removeMenu(int index)
Removes the Menu at the given index from the Menus list.
|
IWDMenu |
removeMenu(String id)
Removes the Menu with the given ID from the Menus list.
|
void |
setDesign(WDMenuBarDesign value)
Sets the design property to the given value. |
void |
setWidth(String value)
Sets the width property to the given value. |
void |
swapMenus(int i,
int j)
Swaps the Menus at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
destroy, getId, getView, requestFocus |
| Field Detail |
public static final WDMenuBarDesign DEFAULT_DESIGN
design property is WDMenuBarDesign.STANDARD.
public static final String DEFAULT_WIDTH
width property is "".
| Method Detail |
public void bindDesign(String path)
design property to the context attribute specified by the given path.
path - the context path of the attribute to which the design property will be boundpublic void bindDesign(IWDAttributeInfo attributeInfo)
design property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the design property will be boundpublic String bindingOfDesign()
design property.
design property is currently boundpublic WDMenuBarDesign getDesign()
design property.
The initial value is WDMenuBarDesign.STANDARD.
design propertysetDesign(WDMenuBarDesign)public void setDesign(WDMenuBarDesign value)
design property to the given value.
value - the new value of the design propertygetDesign()public void bindWidth(String path)
width property to the context attribute specified by the given path.
path - the context path of the attribute to which the width property will be boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the width property will be boundpublic String bindingOfWidth()
width property.
width property is currently boundpublic String getWidth()
width property.
The initial value is "".
width propertysetWidth(String)public void setWidth(String value)
width property to the given value.
value - the new value of the width propertygetWidth()public void addMenu(IWDMenu menu)
Menu at the end of the Menus list.
menu - the Menu to be added to the listgetMenus()
public void addMenu(IWDMenu menu,
int index)
Menu at the specified (zero-based) index into the Menus list.
menu - the Menu to be inserted into the listindex - (zero-based) insertion position in the listgetMenus()
public void swapMenus(int i,
int j)
Menus at the given indices.
i - index of the first Menu to swapj - index of the second Menu to swap
IndexOutOfBoundsException - If one of the indices is out of boundspublic IWDMenu[] getMenus()
Menus list as an array.
Menus listpublic IWDMenu getMenu(int index)
Menu at the given index.
Menu at the given indexpublic int indexOfMenu(IWDMenu menu)
Menus list,
returns -1 if the element is not in the list.
public int numberOfMenus()
Menus.
MenusgetMenus()public boolean hasMenus()
true if there exists a Menu.
true if there exists a Menu, otherwise returns falsegetMenus()public Iterator iterateMenus()
Menus list.
Menus listgetMenus()public IWDMenu removeMenu(int index)
Menu at the given index from the Menus 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
addMenu(IWDMenu),
getMenus()public IWDMenu removeMenu(String id)
Menu with the given ID from the Menus 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
addMenu(IWDMenu),
getMenus()public void removeAllMenus()
Menus list.
This does not destroy the removed elements, i.e. they may be added again!
addMenu(IWDMenu),
getMenus()public void destroyAllMenus()
Menus 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 | |||||||||