Class FormulaBarTransform

    • Field Detail

      • goImage

        public FormalParameter goImage
        Indicates name of the GO image to be used in HTML mode.
      • onChangeJSfunction

        public FormalParameter onChangeJSfunction
        Indicates the name of the JS function to be executed when pull-down menu has been manipulated.
      • boneSubType

        public FormalParameter boneSubType
        Indicates the name the formula bar subtype used in RW's Bone framework.
      • formulaBarID

        public FormalParameter formulaBarID
        Indicates the ID for the formula bar used in Javascript functions.
      • imgError

        public FormalParameter imgError
        Indicates the name of error image.
      • insertNewMetricTitleId

        public FormalParameter insertNewMetricTitleId
        Indicates the ID for the descriptor to be used as title for new Metric Editor.
      • renameEditObjTitleId

        public FormalParameter renameEditObjTitleId
        Indicates the ID for the descriptor to be used as title for Rename/edit Objects Editor.
    • Constructor Detail

      • FormulaBarTransform

        public FormulaBarTransform()
        Default no-args constructor, initialize formal parameters.
    • Method Detail

      • initializeFormalParameters

        public void initializeFormalParameters()
        Initialize the css classes to be used by this transform.
      • getDescription

        public java.lang.String getDescription()
        Returns the textual description of current transform class.
        Specified by:
        getDescription in interface Transform
        Returns:
        String the description of the transform.
      • getFormulaBarProcessEvent

        public WebEvent getFormulaBarProcessEvent()
        Returns an instance of the event responsible for processing the editor's actions
        Returns:
        the EnumFormulaBarEvents.WebEventFormulaBarProcess event
      • renderErrorMessage

        public void renderErrorMessage​(MarkupOutput out)
        The method renders an error message if an error has ocurred.
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • renderFormulaUnitsTitle

        public void renderFormulaUnitsTitle​(MarkupOutput out)
        Renders the title label that appears before the units list section
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • renderFormulaNameTitle

        public void renderFormulaNameTitle​(MarkupOutput out)
        Renders the title label that appears before the formula name section
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • renderFormulaNameText

        public void renderFormulaNameText​(MarkupOutput out)
        Renders the text input for the formula name section
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • renderFormulaDynamicAliasTitle

        public void renderFormulaDynamicAliasTitle​(MarkupOutput out)
        Renders the title label that appears before the dynamic alias input section
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • renderFormulaDynamicAliasInput

        public void renderFormulaDynamicAliasInput​(MarkupOutput out)
        Renders the check box for the dynamic alias section
        Parameters:
        out - MarkupOutput instance where to create the HTML output.
      • showAggFromBaseCheckBox

        public boolean showAggFromBaseCheckBox()
      • renderFormulaAggregateFromBaseTitle

        public void renderFormulaAggregateFromBaseTitle​(MarkupOutput out)
      • renderFormulaAggregateFromBaseInput

        public void renderFormulaAggregateFromBaseInput​(MarkupOutput out)
      • renderFormulaDefinitionSection

        public void renderFormulaDefinitionSection​(MarkupOutput out)
        Renders definition area within Formula Bar editor.
        It breaks this section into HTML list which defines a list of available metrics; also, a formula area is rendered from here where a text area is displayed.
        Parameters:
        out - MarkupOutput where to write output.
      • showDatasetsList

        public boolean showDatasetsList()
      • renderFormulaTextArea

        public void renderFormulaTextArea​(MarkupOutput out)
        Renders definition text area where end-users can enter new derived metric formula.
        Parameters:
        out - MarkupOutput where to write output.
      • renderFormulaUnitsList

        public void renderFormulaUnitsList​(MarkupOutput out)
        Renders a select box containing the formulas associated with the report
        Parameters:
        out - MarkupOutput to be used
      • initEditor

        protected void initEditor​(Editor editor)
        Initialize the editor with the global settings.
        Overrides:
        initEditor in class AbstractEditorTransform
        Parameters:
        editor - Editor instance, abstraction of the container where output is rendered.