com.sapportals.wcm.rendering.uicommand

Class AbstractUIMenu

java.lang.Object
  extended by com.sapportals.wcm.rendering.uicommand.AbstractUIMenu
All Implemented Interfaces:
IUIMenu
Direct Known Subclasses:
UIButtonMenu, UIHoverMenu, UIIconMenu, UILinkMenu, UIMenuBar, UINoMenu, UISmallButtonMenu, UITabMenu, UIToolbarButtonMenu, UIVerticalLinkMenu

Deprecated. As of NetWeaver 7.1

public abstract class AbstractUIMenu
extends Object
implements IUIMenu

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()
          Deprecated.  
 
Method Summary
 String createTarget(IExecCommand command, AbstractProxyControl proxy)
          Deprecated. As of NetWeaver 7.1
 String createTarget(IMassExecCommand command, AbstractProxyControl proxy)
          Deprecated. As of NetWeaver 7.1
 String createTarget(IUIGroupCommand group, AbstractProxyControl proxy)
          Deprecated. As of NetWeaver 7.1
protected  com.sapportals.htmlb.Component getCommandLink(IExecCommand command, AbstractProxyControl proxy, boolean renderDots)
          Deprecated. As of NetWeaver 7.1
protected  com.sapportals.htmlb.Component getCommandLink(IResource resource, IExecCommand command, AbstractProxyControl proxy, boolean renderDots)
          Deprecated. As of NetWeaver 7.1
protected  String getLinkLabel(String commandLabel)
          Deprecated. As of NetWeaver 7.1
protected  boolean renderGroup(IUIGroupCommand group, com.sapportals.htmlb.hovermenu.HoverMenu hoverMenu, IResource resource, AbstractProxyControl proxy, boolean showSeparator, boolean groupExpanded, boolean groupIncluded)
          Deprecated. As of NetWeaver 7.1
 com.sapportals.htmlb.hovermenu.HoverMenu renderHoverMenu(IUIGroupCommand group, IResource resource, AbstractProxyControl proxy)
          Deprecated. As of NetWeaver 7.1
 
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

AbstractUIMenu

public AbstractUIMenu()
Deprecated. 
Method Detail

renderHoverMenu

public com.sapportals.htmlb.hovermenu.HoverMenu renderHoverMenu(IUIGroupCommand group,
                                                                IResource resource,
                                                                AbstractProxyControl proxy)
                                                         throws WcmException
Deprecated. As of NetWeaver 7.1

Render a hover menu for a IUIGroupCommand given

Parameters:
resource - the IResource for which the component is required
proxy - the Control that called this method. It is set as parameter for the retrieved instance
group - Description of the param
Returns:
the resulted component
Throws:
WcmException - Description of the Exception

renderGroup

protected boolean renderGroup(IUIGroupCommand group,
                              com.sapportals.htmlb.hovermenu.HoverMenu hoverMenu,
                              IResource resource,
                              AbstractProxyControl proxy,
                              boolean showSeparator,
                              boolean groupExpanded,
                              boolean groupIncluded)
                       throws WcmException
Deprecated. As of NetWeaver 7.1

Creates a hover menu component according with the input parameters

Parameters:
resource - the IResource for which the component is requiered
proxy - the Control that called this method. It is set as parameter for the retrieved instance
group - the given IUICommandGroup
hoverMenu - the parrent HoverMenu
showSeparator - true if a hover separator is needed
groupExpanded - true if a parent IUICommandGroup is expanded
Returns:
true if is needed a hover sepatator
Throws:
WcmException - Description of the Exception

createTarget

public String createTarget(IUIGroupCommand group,
                           AbstractProxyControl proxy)
                    throws WcmException
Deprecated. As of NetWeaver 7.1

Creates a unique Id as String where are encoded the IUIGroupCommand data

Parameters:
proxy - the Control that called this method.
group - Description of the param
Returns:
an unique id
Throws:
WcmException - Description of the Exception

createTarget

public String createTarget(IExecCommand command,
                           AbstractProxyControl proxy)
                    throws WcmException
Deprecated. As of NetWeaver 7.1

Creates a unique Id as String where are encoded the IExecCommand data

Parameters:
command - the IExecCommand
proxy - the Control that called this method.
Returns:
an unique id
Throws:
WcmException - Description of the Exception

createTarget

public String createTarget(IMassExecCommand command,
                           AbstractProxyControl proxy)
                    throws WcmException
Deprecated. As of NetWeaver 7.1

Creates a unique Id as String where are encoded the IUIMassExecCommand data

Parameters:
command - the IUIMassExecCommand
proxy - the Control that called this method.
Returns:
an unique id
Throws:
WcmException - Description of the Exception

getCommandLink

protected com.sapportals.htmlb.Component getCommandLink(IExecCommand command,
                                                        AbstractProxyControl proxy,
                                                        boolean renderDots)
Deprecated. As of NetWeaver 7.1


getCommandLink

protected com.sapportals.htmlb.Component getCommandLink(IResource resource,
                                                        IExecCommand command,
                                                        AbstractProxyControl proxy,
                                                        boolean renderDots)
Deprecated. As of NetWeaver 7.1


getLinkLabel

protected String getLinkLabel(String commandLabel)
Deprecated. As of NetWeaver 7.1

Take out the '...' ending from the IExecCommand labels

Parameters:
commandLabel - the IExecCommand's label as String
Returns:
the label without '...' ending
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice