public class

ReportCellRemoveFromGrid

extends AbstractReportCellContextMenuItemBuilder
java.lang.Object
   ↳ com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
     ↳ com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
       ↳ com.microstrategy.web.app.transforms.contextmenus.ReportCellRemoveFromGrid

Class Overview

The ReportCellRemoveFromGrid represents a context menu item builder that will generate the option for being able to remove the current grid cell selected (specified on the context) from the grid.

Summary

Public Constructors
ReportCellRemoveFromGrid(Shortcut shortcut)
Class constructor
Public Methods
ContextMenuItem createItem(TransformContext context)
Creates and populates a ContextMenuItem based on the information in the Shortcut used as its defintion, as well as the logic included on this builder instance.
Protected Methods
String getJSCode(TransformContext context)
Generate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.
boolean isActionEnabled(TransformContext context)
Called by isItemAvailable(TransformContext), indicates the abstract class if the corresponding action of this item is available.
[Expand]
Inherited Methods
From class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
From class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
From class java.lang.Object
From interface com.microstrategy.web.app.gui.ContextMenuItemBuilder

Public Constructors

public ReportCellRemoveFromGrid (Shortcut shortcut)

Class constructor

Parameters
shortcut Shortcut instance with the base definition of the option

Public Methods

public ContextMenuItem createItem (TransformContext context)

Creates and populates a ContextMenuItem based on the information in the Shortcut used as its defintion, as well as the logic included on this builder instance.

Parameters
context TransformContext initialized instance with the information on where this option will be used
Returns
  • a new instance of a ContextMenuItem initialized with the option information to present to the user.

Protected Methods

protected 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 TransformContext initialized 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.

protected boolean isActionEnabled (TransformContext context)

Called by isItemAvailable(TransformContext), indicates the abstract class if the corresponding action of this item is available.

Parameters
context TransformContext initialized 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.