Class OndemandContextMenusTransform
- java.lang.Object
 - 
- com.microstrategy.web.transform.AbstractTransform
 - 
- com.microstrategy.web.app.transforms.AbstractBasicReportTransform
 - 
- com.microstrategy.web.app.transforms.contextmenus.OndemandContextMenusTransform
 
 
 
 
- 
- All Implemented Interfaces:
 TransformContext,Transform
- Direct Known Subclasses:
 OndemandDrillContextMenusTransform
public class OndemandContextMenusTransform extends AbstractBasicReportTransform implements TransformContext
TheOndemandContextMenusTransformclass populates theContextMenuManagerwith the context menus available as RMC on the report. The context menus data is then written in JSON format and added to theMarkupOutputout to be used by the client side (javascript). Currently this transform populates the on demand low priority drill paths, but this class could be used to handle other on context menus throughOndemandContextMenuBuilderFactoryclass. This transform is used in both Reports as well as RWDs.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Field Summary
- 
Fields inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
_bean, _rb, _rwb, _vb 
 - 
 
- 
Constructor Summary
Constructors Constructor Description OndemandContextMenusTransform() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppContextgetAppContext()Provides an instance of the AppContext for the current request.protected TransformContextgetContext()Returns a TransformContext object.ContextMenuManagergetContextMenuManager()Returns theContextMenuManagerinstance used by this Transform.protected java.lang.StringgetContextMenuManagerName()Returns the name to use for theContextMenuManagerof this Transform.java.lang.StringgetDescription()Returns a textual description of the transform.protected OndemandContextMenuBuilderFactorygetOndemandContextMenuBuilderFactory()This method gets theOndemandContextMenuBuilderFactoryobject which is responsible for populating the context menus by delegating it toOnDemandContextMenuBuilder.TransformgetTransform()Provides the current Transform instance.WebComponentgetWebComponent()Provides the current WebComponent.protected voidpopulateMenuItems()Populates the ondemand menuitems for Grid/Graph.protected voidrender(MarkupOutput out)This method is responsible for rendering the transform and is called inAbstractBasicReportTransform.transform(Transformable, MarkupOutput)protected voidsendMenuItemsToOutput(MarkupOutput out)This method gets thegetContextMenuManager()and creates a menu elements datastructure string, adds it to aBlockand sends it to the input parameterMarkupOutputout.protected voidsetFormalParameters()sets the formal parameters.- 
Methods inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
addFormalParameter, getElemsMapHelper, getGraphBean, getGridData, getHyperLinkHelper, getReportBean, getRWBean, getSupportedBeanType, getViewBean, getWebGridData, getWebReportGrid, getWebTemplate, initBeans, initGridData, isDesignMode, isFeatureAvailable, isReport, isTrue, supports, transform 
- 
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports 
 - 
 
 - 
 
- 
- 
Field Detail
- 
sortSetNamesAndDrillPaths
public FormalParameter sortSetNamesAndDrillPaths
 
- 
groupContextMenuDrillPathsByType
public FormalParameter groupContextMenuDrillPathsByType
 
- 
showDrillDownOnly
public FormalParameter showDrillDownOnly
 
- 
showUniqueDrillPaths
public FormalParameter showUniqueDrillPaths
 
- 
showDrillPathSetNamesSubMenuAtTopLevel
public FormalParameter showDrillPathSetNamesSubMenuAtTopLevel
 
- 
drillWithinBehavior
public FormalParameter drillWithinBehavior
 
 - 
 
- 
Method Detail
- 
setFormalParameters
protected void setFormalParameters()
sets the formal parameters. 
- 
render
protected void render(MarkupOutput out)
Description copied from class:AbstractBasicReportTransformThis method is responsible for rendering the transform and is called inAbstractBasicReportTransform.transform(Transformable, MarkupOutput)- Specified by:
 renderin classAbstractBasicReportTransform
 
- 
populateMenuItems
protected void populateMenuItems()
Populates the ondemand menuitems for Grid/Graph. 
- 
sendMenuItemsToOutput
protected void sendMenuItemsToOutput(MarkupOutput out)
This method gets thegetContextMenuManager()and creates a menu elements datastructure string, adds it to aBlockand sends it to the input parameterMarkupOutputout.- Parameters:
 out-MarkupOutputobject
 
- 
getOndemandContextMenuBuilderFactory
protected OndemandContextMenuBuilderFactory getOndemandContextMenuBuilderFactory()
This method gets theOndemandContextMenuBuilderFactoryobject which is responsible for populating the context menus by delegating it toOnDemandContextMenuBuilder.- Returns:
 - a 
OndemandContextMenuBuilderFactoryobject. 
 
- 
getDescription
public java.lang.String getDescription()
Description copied from interface:TransformReturns a textual description of the transform.- Specified by:
 getDescriptionin interfaceTransform- Returns:
 - The textual description of the transform.
 
 
- 
getContextMenuManager
public ContextMenuManager getContextMenuManager()
Returns theContextMenuManagerinstance used by this Transform. This method will return a non-null instance, even if context menus are not enabled for this transform- Specified by:
 getContextMenuManagerin interfaceTransformContext
 
- 
getAppContext
public AppContext getAppContext()
Description copied from interface:TransformContextProvides an instance of the AppContext for the current request.- Specified by:
 getAppContextin interfaceTransformContext- Returns:
 AppContextinstance related with the bean being transformed.
 
- 
getContextMenuManagerName
protected java.lang.String getContextMenuManagerName()
Returns the name to use for theContextMenuManagerof this Transform. 
- 
getTransform
public Transform getTransform()
Description copied from interface:TransformContextProvides the current Transform instance.- Specified by:
 getTransformin interfaceTransformContext
 
- 
getWebComponent
public WebComponent getWebComponent()
Description copied from interface:TransformContextProvides the current WebComponent.- Specified by:
 getWebComponentin interfaceTransformContext
 
- 
getContext
protected TransformContext getContext()
Returns a TransformContext object.- Returns:
 - a TransformContext object.
 
 
 - 
 
 -