Class AbstractReportCellContextMenuItemBuilder
- java.lang.Object
 - 
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
 - 
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
 
 
 
- 
- All Implemented Interfaces:
 ContextMenuItemBuilder
- Direct Known Subclasses:
 AbstractReportCellComposedContextMenuItemBuilder,AbstractReportCellInsertMetric,AbstractReportCellMove,AbstractReportCellParentMenu,AbstractReportCellSort,AbstractReportCellThresholds,CreateSelectorControl,ReportCellActionControlEditor,ReportCellAddShortcutMetric,ReportCellAdvancedSort,ReportCellAlert,ReportCellAttributeFormEditor,ReportCellClearDerivedElements,ReportCellCustomSort,ReportCellDefaultMenu,ReportCellDEQuickGroup,ReportCellDEQuickGroupOperator,ReportCellDerivedElements,ReportCellEditDerived,ReportCellFilterOn,ReportCellFilterOnSelections,ReportCellFormat,ReportCellHyperLink,ReportCellKeepOnGrid,ReportCellMetricFilterEdit,ReportCellNewCustomSort,ReportCellRemoveFromGrid,ReportCellRemoveFromReport,ReportCellRename,ReportCellSelectorControlEditor,SelectControlTargets
public abstract class AbstractReportCellContextMenuItemBuilder extends ContextMenu.DefaultContextMenuItemBuilder
- Since:
 - MicroStrategy Web 8.0.1
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractReportCellContextMenuItemBuilder(Shortcut shortcut)Class constructor 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancanDefineDerivedElements(TransformContext context)ContextMenuItemcreateItem(TransformContext context)Creates and populates aContextMenuItembased on the information in theShortcutused as its defintion, as well as the logic included on this builder instance.protected ReportGridDisplayCellgetCell(TransformContext context)Utility method for obtaining theReportGridDisplayCellassociated with this menu builder via aTransformContextinstance.protected FormalParametergetFormalParameter(TransformContext context, java.lang.String fpName)Utility method for obtaining a formal parameter value from the transform associated with this instanceprotected intgetIntValue(TransformContext context, java.lang.String fpName, int defaultValue)Utility method for obtaining the integer value of a given formal parameterprotected abstract java.lang.StringgetJSCode(TransformContext context)Generate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.protected intgetPassThroughMode(TransformContext context)protected java.lang.StringgetStringValue(TransformContext context, java.lang.String fpName, java.lang.String defaultValue)Utility method for obtaining the string value of a given formal parameterprotected TransformgetTransform(TransformContext context)Utility method for obtaining theReportGridTransformImplassociated with this menu builder via aTransformContextinstance.protected abstract booleanisActionEnabled(TransformContext context)Called byisItemAvailable(com.microstrategy.web.app.transforms.TransformContext), indicates the abstract class if the corresponding action of this item is available.protected booleanisFeatureAvailable(TransformContext context, java.lang.String featureName)Utility method for testing a given feature against the context definedprotected booleanisIframeEnabled(TransformContext context)Utility method for determining if the environment is enabled for IFrame requests or notbooleanisItemAvailable(TransformContext context)Determines if the option shall be available to the user or not.protected booleanisRW(TransformContext context)Indicate whether it is for a rw document or a reportprotected booleanisTrue(TransformContext context, java.lang.String fpName)Shortcut method for obtaining the boolean value of a formal parameter as defined on the context.- 
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getTransform
protected Transform getTransform(TransformContext context)
Utility method for obtaining theReportGridTransformImplassociated with this menu builder via aTransformContextinstance.- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 Transforminstance related with this menu builder instance.
 
- 
getCell
protected ReportGridDisplayCell getCell(TransformContext context)
Utility method for obtaining theReportGridDisplayCellassociated with this menu builder via aTransformContextinstance.- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 ReportGridDisplayCellinstance related with this menu builder instance.
 
- 
getFormalParameter
protected FormalParameter getFormalParameter(TransformContext context, java.lang.String fpName)
Utility method for obtaining a formal parameter value from the transform associated with this instance- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be usedfpName- String value with the name of the formal parameter to look for- Returns:
 FormalParameterinstance if found on the transform defined on the context. If the transform is not compatible with this menu builder or the formal parameter does not exist, returnsnull
 
- 
isTrue
protected boolean isTrue(TransformContext context, java.lang.String fpName)
Shortcut method for obtaining the boolean value of a formal parameter as defined on the context.- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be usedfpName- String value with the name of the formal parameter to look for- Returns:
 trueif the formal parameter is found and that's its defined value If the transform is not compatible with this menu builder, or the formal parameter does not exist or its not defined with a boolean type, returnsfalse
 
- 
isFeatureAvailable
protected boolean isFeatureAvailable(TransformContext context, java.lang.String featureName)
Utility method for testing a given feature against the context defined- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be usedfeatureName- String value with the name of the feature to test for- Returns:
 - boolean value indicating if the feature is granted or not.
 
 
- 
getIntValue
protected int getIntValue(TransformContext context, java.lang.String fpName, int defaultValue)
Utility method for obtaining the integer value of a given formal parameter- Parameters:
 fpName- String value with the name of the formal parameter to testdefaultValue- value to return if the process of querying the formal parameter fails.- Returns:
 - value of the formal parameter requested. If not found or the formal parameter is not of type integer, it will return the default value provided.
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getStringValue
protected java.lang.String getStringValue(TransformContext context, java.lang.String fpName, java.lang.String defaultValue)
Utility method for obtaining the string value of a given formal parameter- Parameters:
 fpName- String value with the name of the formal parameter to testdefaultValue- value to return if the process of querying the formal parameter fails.- Returns:
 - value of the formal parameter requested. If not found or the formal parameter is not of type string, it will return the default value provided.
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
isIframeEnabled
protected boolean isIframeEnabled(TransformContext context)
Utility method for determining if the environment is enabled for IFrame requests or not- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 - boolean value indicating if iframe requests shall be enabled or not.
 
 
- 
isActionEnabled
protected abstract boolean isActionEnabled(TransformContext context)
Called byisItemAvailable(com.microstrategy.web.app.transforms.TransformContext), indicates the abstract class if the corresponding action of this item is available.- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 - boolean value indicating if the option should be enabled to the user or not, given the properties available on the context object.
 
 
- 
isItemAvailable
public boolean isItemAvailable(TransformContext context)
Determines if the option shall be available to the user or not.- Specified by:
 isItemAvailablein interfaceContextMenuItemBuilder- Overrides:
 isItemAvailablein classContextMenu.DefaultContextMenuItemBuilder- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 - boolean value indicating if the option should be enabled to the user or not, given the properties available on the context object.
 
 
- 
createItem
public ContextMenuItem createItem(TransformContext context)
Creates and populates aContextMenuItembased on the information in theShortcutused as its defintion, as well as the logic included on this builder instance.- Specified by:
 createItemin interfaceContextMenuItemBuilder- Overrides:
 createItemin classContextMenu.DefaultContextMenuItemBuilder- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 - a new instance of a 
ContextMenuIteminitialized with the option information to present to the user. 
 
- 
getJSCode
protected abstract java.lang.String getJSCode(TransformContext context)
Generate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.- Parameters:
 context-TransformContextinitialized instance with the information on where this option will be used- Returns:
 - String value with the JavaScript information to trigger when the option is selected.
 
 
- 
canDefineDerivedElements
protected boolean canDefineDerivedElements(TransformContext context)
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
isRW
protected boolean isRW(TransformContext context)
Indicate whether it is for a rw document or a report- Parameters:
 context-- Returns:
 
 
- 
getPassThroughMode
protected int getPassThroughMode(TransformContext context)
 
 - 
 
 -