Class ReportGraphDrill.GraphAreaContextMenuBuilder

    • Constructor Detail

      • GraphAreaContextMenuBuilder

        public GraphAreaContextMenuBuilder​(TransformContext context)
    • Method Detail

      • 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)
      • getDrillParameters

        protected java.lang.String getDrillParameters​(WebDrillPath drillPath,
                                                      boolean isAdvanced)
        Returns the parameters to the JavaScript function 'submitGraphDrill' in mstrReportGraphCMImpl.js which submits the Graph Drill Event
        Overrides:
        getDrillParameters in class ReportCellDrill.AbstractDrillContextMenuBuilder
        Parameters:
        drillPath - WebDrillPath from where the JavaScript arguments will be generated
        Returns:
        String value with the JavaScript information that should be included on the code generated for this drill path option.
      • setGraphArea

        protected void setGraphArea​(WebGraphArea wga)
      • 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.