|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.hovermenu.HoverMenuItem
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
HoverMenuItem(String id,
String text)
|
|
HoverMenuItem(String text,
String id,
String imgSrc)
|
|
| Method Summary | |
HoverMenu |
addSubHoverMenu(String id)
creates a new hover menu with the given id and sets this hover menu as the sub menu to this menu item |
String |
getAltTextForImage()
return the alt text for the image used within the hover menu |
String |
getClientSideScript()
returns the client-side script to be run |
String |
getDisabledImgSrc()
sets the disables Image for the item |
String |
getId()
returns the key for the item |
String |
getImgSrc()
returns the image src |
String |
getLinkReference()
returns the link reference for an item |
String |
getLinkTarget()
returns the link click target for an item |
String |
getOnItemClick()
event handler for the item click event |
HoverMenu |
getParentMenu()
returns the parent hover menu for this item |
HoverMenu |
getSubMenu()
returns the sub hover menu to the |
String |
getText()
returns the title of the hovermenu item |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
boolean |
hasHoverItemDivider()
check if the item has a devider |
boolean |
isCheckable()
determines if the item is checkable |
boolean |
isChecked()
determines if the item is checked or not |
boolean |
isDisabled()
determines if the hovermenu item is disabled or not |
boolean |
isEnabled()
determines if the hovermenu item is enabled or not |
void |
setAltTextForImage(String altTextForImage)
sets the alt text for the image used within the menu item |
void |
setCheckable(boolean checkable)
sets the item to be checkable |
void |
setChecked(boolean checked)
sets the checked/unchecked status of the item |
void |
setClientSideScript(String clientSideScript)
sets the client-side script to be run |
void |
setDisabled(boolean disabled)
Deprecated. Use setEnabled(boolean). |
void |
setDisabledImgSrc(String disabledImgSrc)
returns the disabled image for the item |
void |
setEnabled(boolean enabled)
enable the hover menu item |
void |
setHoverItemDivider(boolean hoverItemDivider)
determines if the item has a devider, the divider will be displayed before the item. |
void |
setId(String id)
sets the key for the menu item |
void |
setImgSrc(String imgSrc)
sets the image src for the menu item |
void |
setLinkReference(String linkRef)
sets the link refernce for an item |
void |
setLinkTarget(String target)
sets the link click target for an item |
void |
setOnItemClick(String onItemClicked)
sets the event handler for the item click event |
protected void |
setParentMenu(HoverMenu parent)
sets the parent menu |
void |
setSubHoverMenu(HoverMenu menu)
sets a given hover menu as the sub hover menu of the item |
void |
setText(String text)
sets the title for the menu item |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public HoverMenuItem(String id,
String text)
public HoverMenuItem(String text,
String id,
String imgSrc)
| Method Detail |
public String getUI()
Component
getUI in class Componentpublic String getText()
public void setText(String text)
public String getId()
getId in class Componentpublic void setId(String id)
setId in class Componentid - the name of this componentpublic void setSubHoverMenu(HoverMenu menu)
public HoverMenu addSubHoverMenu(String id)
public HoverMenu getSubMenu()
public boolean hasHoverItemDivider()
public void setHoverItemDivider(boolean hoverItemDivider)
public String getOnItemClick()
public void setOnItemClick(String onItemClicked)
public String getLinkReference()
public void setLinkReference(String linkRef)
public String getClientSideScript()
public void setClientSideScript(String clientSideScript)
public String getLinkTarget()
public void setLinkTarget(String target)
public HoverMenu getParentMenu()
protected void setParentMenu(HoverMenu parent)
public boolean isDisabled()
public void setDisabled(boolean disabled)
setEnabled(boolean).
public boolean isEnabled()
public void setEnabled(boolean enabled)
public String getImgSrc()
public void setImgSrc(String imgSrc)
public String getAltTextForImage()
public void setAltTextForImage(String altTextForImage)
public String getDisabledImgSrc()
public void setDisabledImgSrc(String disabledImgSrc)
public boolean isCheckable()
public void setCheckable(boolean checkable)
public boolean isChecked()
public void setChecked(boolean checked)
public ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||