Class GridAutoStylesTransform

    • Field Detail

      • renderForm

        public FormalParameter renderForm
        Specifies whether or not to render HTML form.
      • imgGo

        protected FormalParameter imgGo
        This is the image name for go image used in the transform in HTML only mode.
        Allowed values: a valid image file name, with any necessary path information not included already on the resourcesFolderImage application configuration parameter.
    • Constructor Detail

      • GridAutoStylesTransform

        public GridAutoStylesTransform()
        Non-parameters Transform constructor. It initializes transform formal parameters.
    • Method Detail

      • initializeTransform

        public void initializeTransform​(Transformable data)
        This method initialize the private and protected fields of the transform. In particular it initialize the indent field based on the value of the initialIndent formal parameter, and the isDHTML based on the bean's OutputFormat. It also invokes the initializeImages and initializeCss methods.
        Specified by:
        initializeTransform in interface AppTransform
        Overrides:
        initializeTransform in class AbstractAppTransform
        Parameters:
        data - Transformable data, mostly bean being transformed.
      • initializeFormalParameters

        public void initializeFormalParameters()
        Initializes formal parameters used in this transform.
      • getDescription

        public java.lang.String getDescription()
        Returns class specification.
        Specified by:
        getDescription in interface Transform
        Returns:
        String text.
      • renderContent

        public void renderContent​(MarkupOutput out)
        Renders transform output only when bean's status is successful.
        Parameters:
        out - where to write the output.
      • renderHiddenInputs

        protected void renderHiddenInputs​(MarkupOutput out)
      • renderLabel

        public void renderLabel​(MarkupOutput out)
        Renders style title text.
        Parameters:
        out - where to write output.
      • renderSubmitButton

        public void renderSubmitButton​(MarkupOutput out)
        Renders the submit button.
        Parameters:
        out - where to write output.
      • renderList

        public void renderList​(MarkupOutput out)
        Renders style content.
        It'll render all styles in a pull-down menu list.
        Parameters:
        out - where to write output.
      • isEnabled

        protected boolean isEnabled()
        Returns true if the toolbar should be enabled.
        Returns:
        boolean
      • addStyles

        protected void addStyles​(SelectTag select,
                                 WebFolder folder,
                                 java.lang.String currentStyleID,
                                 java.lang.String currentStyleName)
        Add list of Grid styles to a select box.
        Parameters:
        select - SelectTag the select tag
        folder - WebFolder the web folder containing the styles to add
        currentStyleID - String the current style ID
        currentStyleName - String the current style name (used only if the ID is not found)
      • addCustomOption

        protected void addCustomOption​(SelectTag select)
        Adds the option of "Custom" to the select box
        Parameters:
        select - SelectTag
      • getChangeStyleEvent

        protected WebEvent getChangeStyleEvent()