Class ReportCellInsertPercentToTotalMetric
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellParentMenu
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellInsertPercentToTotalMetric
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportCellInsertPercentToTotalMetric extends AbstractReportCellParentMenu
TheReportCellInsertPercentToTotalMetricrepresents a context menu item builder that will hold a sub-menu structure with a list of the options that a user is enabled to access for inserting new metrics based on the percent to total of the current grid cell selected, specified on the context. If no children options are defined on its submenu (lack of privileges, conditions required not met by the current context, etc) the option will automatically be ignored and the final context menu will not display it.- Since:
- MicroStrategy Web 8.0.1
-
-
Constructor Summary
Constructors Constructor Description ReportCellInsertPercentToTotalMetric(Shortcut definition)Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisActionEnabled(TransformContext context)Called byisItemAvailable(com.microstrategy.web.app.transforms.TransformContext), indicates the abstract class if the corresponding action of this item is available.booleanisItemAvailable(TransformContext context)Determines if the option shall be available to the user or not.-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellParentMenu
createItem, getJSCode
-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
canDefineDerivedElements, getCell, getFormalParameter, getIntValue, getPassThroughMode, getStringValue, getTransform, isFeatureAvailable, isIframeEnabled, isRW, isTrue
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript
-
-
-
-
Method Detail
-
isActionEnabled
protected 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.- Specified by:
isActionEnabledin classAbstractReportCellContextMenuItemBuilder- 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)
Description copied from class:AbstractReportCellContextMenuItemBuilderDetermines if the option shall be available to the user or not.- Specified by:
isItemAvailablein interfaceContextMenuItemBuilder- Overrides:
isItemAvailablein classAbstractReportCellContextMenuItemBuilder- 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.
-
-