Class EnumItem.EnumRendering

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    EnumItem

    public static class EnumItem.EnumRendering
    extends java.lang.Object
    implements java.io.Serializable
    Code rendering of list of values
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumRendering​(java.lang.String color, java.lang.String bgcolor, java.lang.String icon, boolean showLabel, boolean showIcon)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBackgroundColor()
      Background color
      java.lang.String getIcon()
      Icon name
      java.lang.String getTextColor()
      Text color
      void setBackgroundColor​(java.lang.String color)
      Set background color
      void setIcon​(java.lang.String icon)
      Set the icon name
      void setTextColor​(java.lang.String color)
      Set text color
      boolean showIcon()
      Display the icon?
      boolean showIcon​(boolean b)
      Display the icon?
      boolean showLabel()
      Display the label on list?
      boolean showLabel​(boolean b)
      Display the label on list?
      org.json.JSONObject toJSONObject()
      Generates a JSON object representation
      java.lang.String toString()
      Generates a string representation of the rendering
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EnumRendering

        public EnumRendering​(java.lang.String color,
                             java.lang.String bgcolor,
                             java.lang.String icon,
                             boolean showLabel,
                             boolean showIcon)
        Constructor
        Parameters:
        color - Optional text color
        bgcolor - Optional background color
        icon - Optional icon name
    • Method Detail

      • getTextColor

        public java.lang.String getTextColor()
        Text color
        Returns:
        color
      • setTextColor

        public void setTextColor​(java.lang.String color)
        Set text color
        Parameters:
        color - #RRGGB
      • getBackgroundColor

        public java.lang.String getBackgroundColor()
        Background color
        Returns:
        color
      • setBackgroundColor

        public void setBackgroundColor​(java.lang.String color)
        Set background color
        Parameters:
        color - #RRGGBB
      • getIcon

        public java.lang.String getIcon()
        Icon name
        Returns:
        icon
      • setIcon

        public void setIcon​(java.lang.String icon)
        Set the icon name
        Parameters:
        icon - name
      • showLabel

        public boolean showLabel()
        Display the label on list?
        Returns:
        true to display label on list
      • showLabel

        public boolean showLabel​(boolean b)
        Display the label on list?
        Parameters:
        b - true to display the label on list
        Returns:
        true to display label on list
      • showIcon

        public boolean showIcon()
        Display the icon?
        Returns:
        true to display icon on list
      • showIcon

        public boolean showIcon​(boolean b)
        Display the icon?
        Parameters:
        b - true to display the icon
        Returns:
        true to display icon on list
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Generates a JSON object representation
        Returns:
        JSON object
      • toString

        public java.lang.String toString()
        Generates a string representation of the rendering
        Overrides:
        toString in class java.lang.Object
        Returns:
        string