com.sapportals.htmlb
Class MenuBar
java.lang.Object
com.sapportals.htmlb.Component
com.sapportals.htmlb.MenuBar
- public class MenuBar
- extends Component
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UI_ID
public static final String UI_ID
- See Also:
- Constant Field Values
MenuBar
public MenuBar(String id)
getUI
public String getUI()
- Description copied from class:
Component
- get a identification String for the renderer that is unique
across all supported components. E.g. you could simply return
the class name of the component class.
The reason for using a separate method and not some internal
reflection method is that you can more easily extend the
functionality or your Component class without having to rewrite
the view class.
- Specified by:
getUI in class Component
- Returns:
- a unique identification string for this Component
addMenuItem
public void addMenuItem(MenuItem menuItem)
getMenuItemAt
public MenuItem getMenuItemAt(int index)
getNumberOfMenuItems
public int getNumberOfMenuItems()
- returns the number of the menu items in the menu bar
getMenuTrigger
public HoverMenuTrigger getMenuTrigger()
setMenuTrigger
public void setMenuTrigger(HoverMenuTrigger trigger)
getWidth
public String getWidth()
setWidth
public void setWidth(String width)
getDesign
public MenuBarDesign getDesign()
setDesign
public void setDesign(MenuBarDesign design)
getMenuItemsIterator
public Iterator getMenuItemsIterator()
- get an Iterator of the menu item children
- Returns:
- an Iterator of the menu item children
Copyright 2006 SAP AG Complete Copyright Notice