com.filenet.wcm.apps.server.presentation.ui
Class ContextMenu

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
      extended bycom.filenet.wcm.toolkit.server.base.WcmModule
          extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
              extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
                  extended bycom.filenet.wcm.apps.server.presentation.ui.ContextMenu
All Implemented Interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface

public class ContextMenu
extends com.filenet.wcm.toolkit.server.base.WcmUiModule


Field Summary
static com.filenet.wcm.toolkit.util.WcmString wsNoActionsError
           
static com.filenet.wcm.toolkit.util.WcmString wsNoItemsChecked
           
 
Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
locale, NAME_DELIMITER
 
Constructor Summary
ContextMenu()
           
 
Method Summary
protected  java.util.List getActions()
          Override to customize actions list retreival.
protected  java.lang.String getRootMenuId()
          Override to change the root menu ID to use.
 void initialize()
           
 void render(java.io.Writer w)
           
protected  void renderList(java.io.Writer w, java.util.List actions, java.lang.String tableId, boolean mainMenu)
           
protected  void renderOpenActionRow(java.io.Writer w, ActionDefinition action, boolean mainMenu)
          Override to customize the rendering of the TR that opens the menu row.
 void setShowActionIcons(boolean showActionIcons)
           
 void setThickClientWindow(boolean thickClientWindow)
           
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmUiModule
getActive, getBasePath, getBaseUrl, getBaseURLBuilder, getControllerEventUrl, getControllerEventUrl, getEventFormFields, getEventFormFields, getEventFormTag, getEventFormTag, getEventUrl, getEventUrl, getEventUrl, getEventUrl, getFormName, getFormSubmitUrl, getFormSubmitUrl, getGlobalEventUrl, getGlobalEventUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getUiParent, peekEvent, renderJSP, routeEvent, routeEvent, serverSideInclude, serverSideInclude, setActive, setJSP
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.GlobalEventModule
onStartPage, subscribeGlobalEvent
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
addChild, addChild, addChild, cleanup, debugTrace, getClassProperty, getClassProperty, getClassPropertyKeys, getConfiguration, getController, getDataStore, getModuleProperty, getModuleProperty, getModuleProperty, getModuleProperty, getModulePropertyKeys, getName, getParent, getWindowProperty, getWindowProperty, persist, queryDataProvider, setClassProperty, setClassProperty, setController, setModuleProperty, setModuleProperty, setName, setParent, setPortletParent, setWindowProperty
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer
addDataProvider, addDataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
onStartPage
 
Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
addDataProvider, cleanup, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent
 

Field Detail

wsNoActionsError

public static final com.filenet.wcm.toolkit.util.WcmString wsNoActionsError

wsNoItemsChecked

public static final com.filenet.wcm.toolkit.util.WcmString wsNoItemsChecked
Constructor Detail

ContextMenu

public ContextMenu()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

setShowActionIcons

public void setShowActionIcons(boolean showActionIcons)

getActions

protected java.util.List getActions()
Override to customize actions list retreival.

Returns:
The ActionDefinitions list.

getRootMenuId

protected java.lang.String getRootMenuId()
Override to change the root menu ID to use.

Returns:
The value that will be used for the SPAN ID. Also used to create the TABLE ID by appending "_table".

render

public void render(java.io.Writer w)
            throws java.lang.Exception
Throws:
java.lang.Exception

setThickClientWindow

public void setThickClientWindow(boolean thickClientWindow)

renderList

protected void renderList(java.io.Writer w,
                          java.util.List actions,
                          java.lang.String tableId,
                          boolean mainMenu)
                   throws java.lang.Exception
Throws:
java.lang.Exception

renderOpenActionRow

protected void renderOpenActionRow(java.io.Writer w,
                                   ActionDefinition action,
                                   boolean mainMenu)
                            throws java.lang.Exception
Override to customize the rendering of the TR that opens the menu row.

Parameters:
w -
action - The ActionDefinition to use.
mainMenu - Whether or not this is the root (main) menu and not a submenu.
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.