Class MojoAttributeTransform

    • Constructor Detail

      • MojoAttributeTransform

        public MojoAttributeTransform()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Returns:
        The textual description of the transform.
      • initializeTransform

        public void initializeTransform​(Transformable data)
        Description copied from class: AbstractAppTransform

        This method initialize the private and protected fields of the transform, such as width and height. It also invokes the initializeWebComponent, initializeImages and initializeCss methods.

        This method is automatically called from the transform method. Transforms which would like to invoke other methods in this instance directly (for example, to invoke some render methods), need first to call this method to guarantee that the Transform is ready to generate output.
        Specified by:
        initializeTransform in interface AppTransform
        Overrides:
        initializeTransform in class AbstractAppTransform
        Parameters:
        data - the bean to transform.
      • createAttrFormBaseBlock

        protected Block createAttrFormBaseBlock​(WebAttribute attr,
                                                WebAttributeForm attrForm)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createAttributeBlock

        public Block createAttributeBlock()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createElementBlock

        public Block createElementBlock​(WebElement elem)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createAttrFormBlock

        public static Block createAttrFormBlock​(WebAttribute attr,
                                                WebAttributeForm attrForm)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createCustomizeAttrFormBlock

        public static Block createCustomizeAttrFormBlock​(WebAttribute attr,
                                                         WebAttributeForm attrForm,
                                                         java.lang.String templateFormLabel)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception