|
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.UIMenuFactory
The UIMenuFactory is a singleton factory, that allows other classes to retrieve
instances of IUIMenus. When the factory is called for the first time
or when it receives a ConfigEvent, it reads out information from
the config framework.
| Field Summary | |
static String |
PLUGIN
path to use for the ConfigFramework |
| Method Summary | |
void |
configEvent(ConfigEvent parm1)
is called by the configuration, if configuration for the factory was changed. |
String |
getConfigListenerId()
Gets the configListenerId attribute of the UIMenuFactory object |
static UIMenuFactory |
getInstance()
Gets the instance attribute of the UIMenuCommandFactory class |
Component |
getRenderMenu(IResource resource,
String menuType,
IParameterName group,
IFlavor flavor,
IProxy proxy)
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data |
Component |
getRenderMenu(IResource resource,
String menuType,
IParameterName group,
String groupID,
IFlavor flavor)
Renders a menu component ( menu bar, hover menu, button menu or link menu) for a command group which have only command which generate external links and no proxy is needed |
Component |
getRenderMenu(IResource resource,
String menuType,
IParameterName group,
String groupID,
IFlavor flavor,
IProxy proxy)
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data |
Component |
renderMenuForGroup(IResource resource,
String menuType,
IUIGroupCommand groupCommand,
IProxy proxy)
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PLUGIN
| Method Detail |
public static UIMenuFactory getInstance()
public Component getRenderMenu(IResource resource,
String menuType,
IParameterName group,
IFlavor flavor,
IProxy 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 instancemenuType - a String which specify the menu typegroup - a IParameterName which specify the groupflavor - a IFlavor which specify the flavor
WdfException - Exception raised in failure situation
WcmException
public Component renderMenuForGroup(IResource resource,
String menuType,
IUIGroupCommand groupCommand,
IProxy 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 instancemenuType - a String which specify the menu type
WdfException - Exception raised in failure situation
WcmException
public Component getRenderMenu(IResource resource,
String menuType,
IParameterName group,
String groupID,
IFlavor flavor,
IProxy proxy)
throws WcmException
resource - the IResource for which the component
is requieredmenuType - a String which specify the menu typegroup - a IParameterName which specify the groupgroupID - a String which specify the group IDflavor - a IFlavor which specify the flavorproxy - the Control that called this method. It is set as parameter
for the retrieved instance
WdfException - Exception raised in failure situation
WcmException
public Component getRenderMenu(IResource resource,
String menuType,
IParameterName group,
String groupID,
IFlavor flavor)
throws WcmException
resource - the IResource for which the component
is requieredmenuType - a String which specify the menu typegroup - a IParameterName which specify the groupgroupID - a String which specify the group IDflavor - a IFlavor which specify the flavor
WdfException - Exception raised in failure situation
WcmExceptionpublic String getConfigListenerId()
public void configEvent(ConfigEvent parm1)
ConfigEvent.CONFIGURABLE_LOADED or ConfigEvent.CONFIGMANAGER_TERMINATED
, the factory deletes all its entries and reloads the configuration, creating
all commands anew.
parm1 - the event raised by the configuration
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||