Class ReportCellDrill.RowValueDrillContextMenuBuilder
- java.lang.Object
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill.AbstractDrillContextMenuBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill.RowValueDrillContextMenuBuilder
-
- All Implemented Interfaces:
ComposedContextMenuBuilder
,OnDemandContextMenuBuilder
,ReportCellDrill.DrillContextMenuBuilder
- Enclosing class:
- ReportCellDrill
public static class ReportCellDrill.RowValueDrillContextMenuBuilder extends ReportCellDrill.AbstractDrillContextMenuBuilder
Relavant for metric cell values- Since:
- MicroStrategy Web 8.0.1
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill.AbstractDrillContextMenuBuilder
SYS_DEFAULT_DISABLE_ONDEMAND_DRILLING
-
-
Constructor Summary
Constructors Constructor Description RowValueDrillContextMenuBuilder(TransformContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextMenu
generateSubMenu()
Method that generates aContextMenu
instance with all the possible sub menu options enabled for the report cell provided.TransformContext
getContext()
protected ReportGridCellMetricValue
getDisplayCell()
protected int
getIntValue(java.lang.String fpName, int defaultValue)
Utility method for obtaining the integer value of a given formal parameterstatic java.lang.String
getItemKeyOf(ReportGridDisplayCell.Context context)
protected WebRowValue
getRowValue()
protected java.lang.String
getStringValue(java.lang.String fpName, java.lang.String defaultValue)
Utility method for obtaining the string value of a given formal parameterprotected ContextMenu
getSubMenu()
Returns ContextMenu using TransformContext's ContextMenuManager.protected java.lang.String
getSubMenuName()
Gets the submenu Name which helps in creation of dynamic menuitems.protected WebDrillMap
getWebDrillMap()
Utility method for obtaining the drill map information for the current cell indicatedprotected WebTitle
getWebTitle()
Utility method for obtaining the currentWebTitle
instance related to the cell being processedprotected boolean
isCellMetric()
If the cell a metric value or template metric, it should return true otherwise falseprotected boolean
isFeatureAvailable(java.lang.String featureName)
Utility method for determining if a feature is available or notboolean
isIframeEnabled()
protected boolean
isMetricDrillingEnabled()
protected boolean
isTrue(java.lang.String fpName)
Utility method for obtaining the boolean value of a given formal parameterboolean
isValid()
protected void
processAdvancedDrillPathElements(WebDrillMap wdm, ContextMenu subMenu)
Utility method that will generate the advanced drill path options for drilling, like browsing to different hierarchiesvoid
setIframeEnabled(boolean value)
Define if the options to generate will be iframe enabled or notprotected void
setWebDrillMap(WebDrillMap wdm)
-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill.AbstractDrillContextMenuBuilder
addDrillMenuItem, addDrillMenuItem, addDrillPathToMenu, addGenericMoreOptions, areThereOptions, canDrill, getDescriptor, getDisplayMode, getDrillParameters, getDrillWithin, getGridDrillDynamicMenuName, getJavaScriptFunction, getMoreOptionsArgs, hasDrillPaths, internalPopulate, isAdvancedDrillMenuAvailable, isDrillable, isOndemandDrillingDisabled, isRW, isTestForElements, populateMoreOptions, populateOnDemand, processDrillPathElements, setAreThereOptions, setImageType, shouldIncludeDrillPath, sortWebDrillMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.transforms.contextmenus.ComposedContextMenuBuilder
generateSubMenu, isIframeEnabled, setIframeEnabled
-
-
-
-
Constructor Detail
-
RowValueDrillContextMenuBuilder
public RowValueDrillContextMenuBuilder(TransformContext context)
- Since:
- MicroStrategy Web 9.0.0
-
-
Method Detail
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceComposedContextMenuBuilder
- Overrides:
isValid
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Returns:
- boolean value that indicates if drilling on the current cell shall be enabled to the user
-
isMetricDrillingEnabled
protected boolean isMetricDrillingEnabled()
- Overrides:
isMetricDrillingEnabled
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Since:
- MicroStrategy Web 9.0.0
-
getDisplayCell
protected ReportGridCellMetricValue getDisplayCell()
-
getWebTitle
protected WebTitle getWebTitle()
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
Utility method for obtaining the currentWebTitle
instance related to the cell being processed- Specified by:
getWebTitle
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Returns:
WebTitle
instance related with the cell being processed. Returnsnull
if none provided.
-
getRowValue
protected WebRowValue getRowValue()
-
setWebDrillMap
protected void setWebDrillMap(WebDrillMap wdm)
- Since:
- MicroStrategy Web 9.0.0
-
getWebDrillMap
protected WebDrillMap getWebDrillMap()
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
Utility method for obtaining the drill map information for the current cell indicated- Specified by:
getWebDrillMap
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Returns:
WebDrillMap
initialized instance with the drill information. Returnsnull
if not supported
-
getSubMenuName
protected java.lang.String getSubMenuName()
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
Gets the submenu Name which helps in creation of dynamic menuitems. This name is used to store the ContextMenu (submenu) with the ContextMenuManager.Eventually this method could become part of the parent ComposedContextMenuBuilder interface if the ondemand dynamicMenus is also needed for other non-drill context menus.
- Specified by:
getSubMenuName
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Returns:
- a name of the ContextMenu (subMenu)
- Since:
- MicroStrategy Web 9.0.0
-
getSubMenu
protected ContextMenu getSubMenu()
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
Returns ContextMenu using TransformContext's ContextMenuManager. For nullReportCellDrill.AbstractDrillContextMenuBuilder.getWebTitle()
creates a new ContextMenu registered with the ContextMenuManager. For non-nullReportCellDrill.AbstractDrillContextMenuBuilder.getWebTitle()
the ContextMenu associated with a #getSubMenuName method is returned- Overrides:
getSubMenu
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Returns:
- the ContextMenu
- Since:
- MicroStrategy Web 8.0.2
-
processAdvancedDrillPathElements
protected void processAdvancedDrillPathElements(WebDrillMap wdm, ContextMenu subMenu)
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
Utility method that will generate the advanced drill path options for drilling, like browsing to different hierarchies- Overrides:
processAdvancedDrillPathElements
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Parameters:
wdm
-WebDrillMap
instance initialized with the drill information for the current cell being analyzed.subMenu
-ContextMenu
instance where the options to be shown will be added
-
getItemKeyOf
public static java.lang.String getItemKeyOf(ReportGridDisplayCell.Context context)
- Since:
- MicroStrategy Web 9.0.0
-
isCellMetric
protected boolean isCellMetric()
Description copied from class:ReportCellDrill.AbstractDrillContextMenuBuilder
If the cell a metric value or template metric, it should return true otherwise false- Overrides:
isCellMetric
in classReportCellDrill.AbstractDrillContextMenuBuilder
- Since:
- MicroStrategy Web 9.0.0
-
setIframeEnabled
public void setIframeEnabled(boolean value)
Define if the options to generate will be iframe enabled or not- Specified by:
setIframeEnabled
in interfaceComposedContextMenuBuilder
- Parameters:
value
- boolean value indicating if the options to generate will be iframe enabled or not
-
isIframeEnabled
public boolean isIframeEnabled()
- Specified by:
isIframeEnabled
in interfaceComposedContextMenuBuilder
- Returns:
- boolean value indicating if the options generated by this builder are iframe enabled or not
-
getContext
public TransformContext getContext()
- Returns:
ReportGridDisplayCell.Context
instance with the information about the context (cell, transform, etc) where this menu item will be displayed.
-
generateSubMenu
public ContextMenu generateSubMenu()
Description copied from interface:ComposedContextMenuBuilder
Method that generates aContextMenu
instance with all the possible sub menu options enabled for the report cell provided.- Specified by:
generateSubMenu
in interfaceComposedContextMenuBuilder
- Returns:
ContextMenu
instance with the drilling options that can be displayed to the user
-
isFeatureAvailable
protected boolean isFeatureAvailable(java.lang.String featureName)
Utility method for determining if a feature is available or not- Parameters:
featureName
- String value with the name of the feature to test- Returns:
- boolean value indicating if the feature is available or not.
-
isTrue
protected boolean isTrue(java.lang.String fpName)
Utility method for obtaining the boolean value of a given formal parameter- Parameters:
fpName
- String value with the name of the formal parameter to test- Returns:
- boolean value of the formal parameter requested. If not found or the formal parameter is not of type boolean, it will return false.
-
getIntValue
protected int getIntValue(java.lang.String fpName, int defaultValue)
Utility method for obtaining the integer value of a given formal parameter- Parameters:
fpName
- String value with the name of the formal parameter to testdefaultValue
- value to return if the process of querying the formal parameter fails.- Returns:
- value of the formal parameter requested. If not found or the formal parameter is not of type integer, it will return the default value provided.
-
getStringValue
protected java.lang.String getStringValue(java.lang.String fpName, java.lang.String defaultValue)
Utility method for obtaining the string value of a given formal parameter- Parameters:
fpName
- String value with the name of the formal parameter to testdefaultValue
- value to return if the process of querying the formal parameter fails.- Returns:
- value of the formal parameter requested. If not found or the formal parameter is not of type string, it will return the default value provided.
-
-