Class ReportCellDrill.HeaderDrillContextMenuBuilder

    • Constructor Detail

      • HeaderDrillContextMenuBuilder

        public HeaderDrillContextMenuBuilder​(TransformContext context)
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • getWebHeader

        protected WebHeader getWebHeader()
      • setWebHeader

        protected void setWebHeader​(WebHeader header)
        Since:
        MicroStrategy Web 9.0.0
      • isDrillable

        protected boolean isDrillable​(WebDrillPath drillPath)
        if getDisplayCell() is null, then this method is called from ondemand drilling and hence we return true, otherwise it reverts to the default implementation.
        Overrides:
        isDrillable in class ReportCellDrill.AbstractDrillContextMenuBuilder
        Parameters:
        drillPath - WebDrillMap initialized instance with the drill information for the current cell.
        Returns:
        boolean value indicating if the current cell is drillable or not
      • 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 class ReportCellDrill.AbstractDrillContextMenuBuilder
        Returns:
        a name of the ContextMenu (subMenu)
        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 interface ComposedContextMenuBuilder
        Parameters:
        value - boolean value indicating if the options to generate will be iframe enabled or not
      • isIframeEnabled

        public boolean isIframeEnabled()
        Specified by:
        isIframeEnabled in interface ComposedContextMenuBuilder
        Returns:
        boolean value indicating if the options generated by this builder are iframe enabled or not
      • 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 test
        defaultValue - 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 test
        defaultValue - 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.