Class ReportGraphDrill
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellComposedContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill
-
- com.microstrategy.web.app.transforms.contextmenus.ReportGraphDrill
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportGraphDrill extends ReportCellDrill
- Since:
- MicroStrategy Web 9.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReportGraphDrill.GraphAreaContextMenuBuilder-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill
ReportCellDrill.AbstractDrillContextMenuBuilder, ReportCellDrill.DrillContextMenuBuilder, ReportCellDrill.HeaderDrillContextMenuBuilder, ReportCellDrill.InvalidDrillContextMenuBuilder, ReportCellDrill.RowValueDrillContextMenuBuilder, ReportCellDrill.TitleDrillContextMenuBuilder
-
-
Constructor Summary
Constructors Constructor Description ReportGraphDrill(Shortcut definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComposedContextMenuBuildergetComposedContextMenuBuilder(TransformContext context)Get an instance ofReportGraphDrill.GraphAreaContextMenuBuilderthat will help obtaining the different drill options that shall be presented to the user.protected FormalParametergetFormalParameter(TransformContext context, java.lang.String fpName)Returns an instance of FormalParameter for the given formal parameter name 'fpName' from the ReportGraphTransformImpl instancejava.lang.StringgetItemKey(TransformContext context)Retrieve the key will be set on the context menu item corresponding to the context input.protected TransformgetTransform(TransformContext context)Returns an instance of ReportGraphTransformImpl instance which is the transform associated with Graphsprotected booleanisActionEnabled(TransformContext context)Checks if a Drill action is allowed on the current GraphArea objectprotected booleanisFeatureAvailable(TransformContext context, java.lang.String featureName)Checks if the given feature 'featureName' is supported by the transform ReportGraphTransformImplbooleanisItemAvailable(TransformContext context)Check to detect whether the "Drill" menu item can be shown in the context menu for for the GraphArea object in questionprotected voidsetOndemandMenuItemProperties(ContextMenuItem item, TransformContext context)Sets the properties on "Drill" ContextMenuItems which is essential for populating of ondemand drilling items for grids.protected booleanshuoldAddExtraSubMenuOptions(TransformContext context)-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill
addExtraSubMenuOptions, createItem, generateSubMenu, getDrillContextMenuBuilder, itemHasSubMenus, setOndemandProperties
-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellComposedContextMenuItemBuilder
getJSCode
-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
canDefineDerivedElements, getCell, getIntValue, getPassThroughMode, getStringValue, isIframeEnabled, isRW, isTrue
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getScript
-
-
-
-
Constructor Detail
-
ReportGraphDrill
public ReportGraphDrill(Shortcut definition)
-
-
Method Detail
-
getComposedContextMenuBuilder
protected ComposedContextMenuBuilder getComposedContextMenuBuilder(TransformContext context)
Get an instance ofReportGraphDrill.GraphAreaContextMenuBuilderthat will help obtaining the different drill options that shall be presented to the user.- Overrides:
getComposedContextMenuBuilderin classReportCellDrill- Parameters:
context-TransformContextinitialized instance with the information on where this option will be used- Returns:
ReportGraphDrill.GraphAreaContextMenuBuilderinitialized instance. Calling its generateDrillSubMenu method provides theContextMenuwith the different drill paths available.
-
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 classReportCellDrill- 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.
-
isActionEnabled
protected boolean isActionEnabled(TransformContext context)
Checks if a Drill action is allowed on the current GraphArea object- Overrides:
isActionEnabledin classReportCellDrill- 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)
Check to detect whether the "Drill" menu item can be shown in the context menu for for the GraphArea object in question- 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.
-
setOndemandMenuItemProperties
protected void setOndemandMenuItemProperties(ContextMenuItem item, TransformContext context)
Description copied from class:ReportCellDrillSets the properties on "Drill" ContextMenuItems which is essential for populating of ondemand drilling items for grids.- Overrides:
setOndemandMenuItemPropertiesin classReportCellDrill- Parameters:
item- a ContextMenuItemcontext- a TransformContext
-
getTransform
protected Transform getTransform(TransformContext context)
Returns an instance of ReportGraphTransformImpl instance which is the transform associated with Graphs- Overrides:
getTransformin classAbstractReportCellContextMenuItemBuilder- Parameters:
context-TransformContextinitialized instance with the information on where this option will be used- Returns:
Transforminstance related with this menu builder instance.
-
getFormalParameter
protected FormalParameter getFormalParameter(TransformContext context, java.lang.String fpName)
Returns an instance of FormalParameter for the given formal parameter name 'fpName' from the ReportGraphTransformImpl instance- Overrides:
getFormalParameterin classAbstractReportCellContextMenuItemBuilder- 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
-
isFeatureAvailable
protected boolean isFeatureAvailable(TransformContext context, java.lang.String featureName)
Checks if the given feature 'featureName' is supported by the transform ReportGraphTransformImpl- Overrides:
isFeatureAvailablein classAbstractReportCellContextMenuItemBuilder- 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.
-
shuoldAddExtraSubMenuOptions
protected boolean shuoldAddExtraSubMenuOptions(TransformContext context)
- Overrides:
shuoldAddExtraSubMenuOptionsin classReportCellDrill
-
-