com.sapportals.htmlb

Class MenuItem

java.lang.Object
  extended bycom.sapportals.htmlb.MenuItem

public class MenuItem
extends Object


Constructor Summary
MenuItem(String id, String text)
          constructs a menu item with a given id and text
 
Method Summary
 HoverMenu getHoverMenu()
          returns the hover menu associated with this menu item
 String getId()
          returns the id of the menu item
 MenuBar getMenuBar()
          returns the hover menu associated with this menu item
 String getText()
          returns the text for the menu
 ForcedTextDirection getTextDirection()
          Gets the text direction for the component
 boolean isEnabled()
          determines if the menu item is disabled
 void setEnabled(boolean enabled)
          disable/enable menu item
 void setHoverMenu(HoverMenu hoverMenu)
          sets the hover menu for the menu item.
 void setId(String id)
          sets the id of the menu item
 void setMenuBar(MenuBar menuBar)
          sets the hover menu for the menu item.
 void setText(String text)
          sets the text for the menu item
 void setTextDirection(ForcedTextDirection textDirection)
          Sets the text direction for the component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItem

public MenuItem(String id,
                String text)
constructs a menu item with a given id and text

Method Detail

getId

public String getId()
returns the id of the menu item


setId

public void setId(String id)
sets the id of the menu item


getText

public String getText()
returns the text for the menu


setText

public void setText(String text)
sets the text for the menu item


getHoverMenu

public HoverMenu getHoverMenu()
returns the hover menu associated with this menu item


setHoverMenu

public void setHoverMenu(HoverMenu hoverMenu)
sets the hover menu for the menu item. The hover menu will be displayed by moving the mouse over the menu item


isEnabled

public boolean isEnabled()
determines if the menu item is disabled


setEnabled

public void setEnabled(boolean enabled)
disable/enable menu item


getMenuBar

public MenuBar getMenuBar()
returns the hover menu associated with this menu item


setMenuBar

public void setMenuBar(MenuBar menuBar)
sets the hover menu for the menu item. The hover menu will be displayed by moving the mouse over the menu item


getTextDirection

public ForcedTextDirection getTextDirection()
Gets the text direction for the component

Returns:
com.sapportals.htmlb.enum.ForcedTextDirection

setTextDirection

public void setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component

Parameters:
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection


Copyright 2006 SAP AG Complete Copyright Notice