Class ReportCellDEQuickGroup
- java.lang.Object
 - 
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
 - 
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
 - 
- com.microstrategy.web.app.transforms.contextmenus.ReportCellDEQuickGroup
 
 
 
 
- 
- All Implemented Interfaces:
 ContextMenuItemBuilder
public class ReportCellDEQuickGroup extends AbstractReportCellContextMenuItemBuilder
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSUB_MENU_NAME 
- 
Constructor Summary
Constructors Constructor Description ReportCellDEQuickGroup(Shortcut shortcut) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.StringgetItemKey(TransformContext context)Retrieve the key will be set on the context menu item corresponding to the context input.protected 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.ContextMenugetSubMenu(TransformContext context)protected booleanisActionEnabled(TransformContext context)Called byAbstractReportCellContextMenuItemBuilder.isItemAvailable(com.microstrategy.web.app.transforms.TransformContext), indicates the abstract class if the corresponding action of this item is available.- 
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
canDefineDerivedElements, getCell, getFormalParameter, getIntValue, getPassThroughMode, getStringValue, getTransform, isFeatureAvailable, isIframeEnabled, isItemAvailable, isRW, isTrue 
- 
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getScript 
 - 
 
 - 
 
- 
- 
Field Detail
- 
SUB_MENU_NAME
public static final java.lang.String SUB_MENU_NAME
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
ReportCellDEQuickGroup
public ReportCellDEQuickGroup(Shortcut shortcut)
 
 - 
 
- 
Method Detail
- 
createItem
public ContextMenuItem createItem(TransformContext context)
Description copied from class:AbstractReportCellContextMenuItemBuilderCreates 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 classAbstractReportCellContextMenuItemBuilder- 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. 
 
- 
getSubMenu
public ContextMenu getSubMenu(TransformContext context)
 
- 
isActionEnabled
protected boolean isActionEnabled(TransformContext context)
Description copied from class:AbstractReportCellContextMenuItemBuilderCalled byAbstractReportCellContextMenuItemBuilder.isItemAvailable(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.
 
 
- 
getJSCode
protected java.lang.String getJSCode(TransformContext context)
Description copied from class:AbstractReportCellContextMenuItemBuilderGenerate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.- Specified by:
 getJSCodein classAbstractReportCellContextMenuItemBuilder- 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.
 
 
- 
getItemKey
public java.lang.String getItemKey(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilderRetrieve the key will be set on the context menu item corresponding to the context input. The context menu item generated based on the same context input will have the same key. This method can be called by context menu before callingContextMenu.DefaultContextMenuItemBuilder.createItem(TransformContext)to check whether the item already exists in the menu to avoid unnecessary creation.- Specified by:
 getItemKeyin interfaceContextMenuItemBuilder- Overrides:
 getItemKeyin classContextMenu.DefaultContextMenuItemBuilder- Parameters:
 context- The context for context menu item creation- Returns:
 - The key for the context menu item if created using the context. By default 
nullwill be return, which means build has no knowledge about the item key. Then context menu item may generate the key by itself. For builder who wants avoid unnecessary item creation should take advantage of this method by overriding with a meaningful implementation. 
 
 - 
 
 -