com.sapportals.wcm.rendering.uicommand

Class UIMenuFactory

java.lang.Object
  extended bycom.sapportals.wcm.rendering.uicommand.UIMenuFactory

public final class UIMenuFactory
extends Object

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

PLUGIN

public static final String PLUGIN
path to use for the ConfigFramework

See Also:
Constant Field Values
Method Detail

getInstance

public static UIMenuFactory getInstance()
Gets the instance attribute of the UIMenuCommandFactory class

Returns:
The instance value

getRenderMenu

public Component getRenderMenu(IResource resource,
                               String menuType,
                               IParameterName group,
                               IFlavor flavor,
                               IProxy proxy)
                        throws WcmException
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data

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
menuType - a String which specify the menu type
group - a IParameterName which specify the group
flavor - a IFlavor which specify the flavor
Returns:
the resulted component
Throws:
WdfException - Exception raised in failure situation
WcmException

renderMenuForGroup

public Component renderMenuForGroup(IResource resource,
                                    String menuType,
                                    IUIGroupCommand groupCommand,
                                    IProxy proxy)
                             throws WcmException
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data

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
menuType - a String which specify the menu type
Returns:
the resulted component
Throws:
WdfException - Exception raised in failure situation
WcmException

getRenderMenu

public Component getRenderMenu(IResource resource,
                               String menuType,
                               IParameterName group,
                               String groupID,
                               IFlavor flavor,
                               IProxy proxy)
                        throws WcmException
Renders a menu component ( menu bar, hover menu, button menu or link menu) according with the input data

Parameters:
resource - the IResource for which the component is requiered
menuType - a String which specify the menu type
group - a IParameterName which specify the group
groupID - a String which specify the group ID
flavor - a IFlavor which specify the flavor
proxy - the Control that called this method. It is set as parameter for the retrieved instance
Returns:
the resulted component
Throws:
WdfException - Exception raised in failure situation
WcmException

getRenderMenu

public Component getRenderMenu(IResource resource,
                               String menuType,
                               IParameterName group,
                               String groupID,
                               IFlavor flavor)
                        throws WcmException
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

Parameters:
resource - the IResource for which the component is requiered
menuType - a String which specify the menu type
group - a IParameterName which specify the group
groupID - a String which specify the group ID
flavor - a IFlavor which specify the flavor
Returns:
the resulted component
Throws:
WdfException - Exception raised in failure situation
WcmException

getConfigListenerId

public String getConfigListenerId()
Gets the configListenerId attribute of the UIMenuFactory object

Returns:
The configListenerId value

configEvent

public void configEvent(ConfigEvent parm1)
is called by the configuration, if configuration for the factory was changed. If the event is of type ConfigEvent.CONFIGURABLE_LOADED or ConfigEvent.CONFIGMANAGER_TERMINATED , the factory deletes all its entries and reloads the configuration, creating all commands anew.

Parameters:
parm1 - the event raised by the configuration


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.