Class RWDrill
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.RWDrill
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class RWDrill extends ContextMenu.DefaultContextMenuItemBuilder
This class is used by Microstrategy Web as a base class for those used to populate drill context menus for RWDs.
New context-menus-builders can be created simply by extending this class and implementing/overriding these methods:
- createItem(): The default method that creates the context-menu item.
- isActionEnabled(): To indicate this class if the specific action associated with this item is available.
- Since:
- MicroStrategy Web 9.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextMenuItem
createItem(TransformContext context)
Creates and populates a ContextMenuItem based on the information in theShortcut
used as defintion.protected RWLayoutTransform
getTransform(TransformContext context)
Helper method to retrieve the RWLayoutTransform from the context.protected boolean
isActionEnabled(TransformContext context)
Indicates the abstract class if the specific action of this item is available.-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript, isItemAvailable
-
-
-
-
Constructor Detail
-
RWDrill
public RWDrill(Shortcut definition)
-
-
Method Detail
-
getTransform
protected RWLayoutTransform getTransform(TransformContext context)
Helper method to retrieve the RWLayoutTransform from the context.
-
createItem
public ContextMenuItem createItem(TransformContext context)
Description copied from class:ContextMenu.DefaultContextMenuItemBuilder
Creates and populates a ContextMenuItem based on the information in theShortcut
used as defintion.- Specified by:
createItem
in interfaceContextMenuItemBuilder
- Overrides:
createItem
in classContextMenu.DefaultContextMenuItemBuilder
- Parameters:
context
- TransformContext with context information.- Returns:
- a new instance of a
ContextMenuItem
.
-
isActionEnabled
protected boolean isActionEnabled(TransformContext context)
Indicates the abstract class if the specific action of this item is available.
-
-