|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rendering.uicommand.AbstractUIMenu
This class can be used by IUIMenus to reduce coding overhead.
| Field Summary |
| Fields inherited from interface com.sapportals.wcm.rendering.uicommand.IUIMenu |
BUTTON_MENU_TYPE, HOVER_MENU_TYPE, ICON_MENU_TYPE, LINK_MENU_TYPE, MENU_BAR_TYPE, SMALL_BUTTON_MENU_TYPE, TAB_MENU_TYPE, TOOLBAR_BUTTON_MENU_TYPE, VERTICAL_LINK_MENU_TYPE |
| Constructor Summary | |
AbstractUIMenu()
|
|
| Method Summary | |
String |
createTarget(IExecCommand command,
AbstractProxyControl proxy)
Creates a unique Id as String where are encoded the IExecCommand
data |
String |
createTarget(IMassExecCommand command,
AbstractProxyControl proxy)
Creates a unique Id as String where are encoded the IUIMassExecCommand
data |
String |
createTarget(IUIGroupCommand group,
AbstractProxyControl proxy)
Creates a unique Id as String where are encoded the IUIGroupCommand
data |
protected Component |
getCommandLink(IExecCommand command,
AbstractProxyControl proxy,
boolean renderDots)
|
protected Component |
getCommandLink(IResource resource,
IExecCommand command,
AbstractProxyControl proxy,
boolean renderDots)
|
protected String |
getLinkLabel(String commandLabel)
Take out the '...' ending from the IExecCommand labels |
protected boolean |
renderGroup(IUIGroupCommand group,
HoverMenu hoverMenu,
IResource resource,
AbstractProxyControl proxy,
boolean showSeparator,
boolean groupExpanded,
boolean groupIncluded)
Creates a hover menu component according with the input parameters |
HoverMenu |
renderHoverMenu(IUIGroupCommand group,
IResource resource,
AbstractProxyControl proxy)
Render a hover menu for a IUIGroupCommand given |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IUIMenu |
getMenuType, getNewInstance, renderMenu |
| Constructor Detail |
public AbstractUIMenu()
| Method Detail |
public HoverMenu renderHoverMenu(IUIGroupCommand group,
IResource resource,
AbstractProxyControl proxy)
throws WcmException
resource - the IResource for which the component
is requieredproxy - the Control that called this method. It is set as parameter
for the retrieved instancegroup - Description of the param
WcmException - Description of the Exception
protected boolean renderGroup(IUIGroupCommand group,
HoverMenu hoverMenu,
IResource resource,
AbstractProxyControl proxy,
boolean showSeparator,
boolean groupExpanded,
boolean groupIncluded)
throws WcmException
resource - the IResource for which the component
is requieredproxy - the Control that called this method. It is set as parameter
for the retrieved instancegroup - the given IUICommandGrouphoverMenu - the parrent HoverMenushowSeparator - true if a hover separator is neededgroupExpanded - true if a parent IUICommandGroup is expanded
WcmException - Description of the Exception
public String createTarget(IUIGroupCommand group,
AbstractProxyControl proxy)
throws WcmException
String where are encoded the IUIGroupCommand
data
proxy - the Control that called this method.group - Description of the param
WcmException - Description of the Exception
public String createTarget(IExecCommand command,
AbstractProxyControl proxy)
throws WcmException
String where are encoded the IExecCommand
data
command - the IExecCommandproxy - the Control that called this method.
WcmException - Description of the Exception
public String createTarget(IMassExecCommand command,
AbstractProxyControl proxy)
throws WcmException
String where are encoded the IUIMassExecCommand
data
command - the IUIMassExecCommandproxy - the Control that called this method.
WcmException - Description of the Exception
protected Component getCommandLink(IExecCommand command,
AbstractProxyControl proxy,
boolean renderDots)
protected Component getCommandLink(IResource resource,
IExecCommand command,
AbstractProxyControl proxy,
boolean renderDots)
protected String getLinkLabel(String commandLabel)
IExecCommand labels
commandLabel - the IExecCommand's label as String
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||