Class ColorPickerEditorTransform

    • Field Detail

      • pickerName

        public FormalParameter pickerName
        Indicates the name of a toolbar defined in the pageConfig that contains the color picker basic colors. Comment for pickerName
    • Constructor Detail

      • ColorPickerEditorTransform

        public ColorPickerEditorTransform()
        Default constructor. Adds the formal parameters defined in the transform.
    • Method Detail

      • generateBasicColors

        protected Tag generateBasicColors()
        Renders the basic colors section of color picker editor.
        Returns:
        a span tag containing the basic colors
      • generateUserColors

        protected Tag generateUserColors()
        Renders the user palette colors section of color picker editor.
        Returns:
        a span tag containing the user palette colors
        Since:
        MicroStrategy Web 8.1.0
      • generateAdvancedColors

        protected Tag generateAdvancedColors()
        Renders the advanced colors section of color picker editor.
        Returns:
        a div tag containing the advanced colors
      • generateSmoothColorBox

        protected Tag generateSmoothColorBox()
        Renders the smooth color picker box.
        Returns:
        a span tag containing the smaller color panes
      • generateSmoothColorSlider

        protected Tag generateSmoothColorSlider()
        Renders the smooth color slider.
        Returns:
        a span tag containing the slider
      • generateColorPane

        protected Tag generateColorPane​(int[] colors)
        Renders an individual color pane.
        Parameters:
        colors - int[] an integer array holding the red, green and blue components of the color to display.
        Returns:
        an empty span tag with the background color set.
      • getDescription

        public java.lang.String getDescription()
        Returns the textual description of the transform
        Returns:
        the description of the transform
      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        Description copied from class: AbstractAppTransform
        Returns the supported bean type. This abstract Transform supports all WebComponents so every sub-class should override this method to return the class of the Bean the Transform is expecting, for example:
         public class CustomReportClass extends AbstractAppTransform {
        
            public Class getSupportedBeanType() {
                //This Transform is expected to work only with a ReportBean,
                //therefore this method needs to return this class:
                return ReportBean.class;
            }
        
         }
         
        Specified by:
        getSupportedBeanType in interface Transform
        Overrides:
        getSupportedBeanType in class AbstractAppTransform
        Returns:
        a root class/interface supported by this transform.
        See Also:
        Transform.getSupportedBeanType()