Package com.simplicite.util
Class EnumItem.EnumRendering
- java.lang.Object
-
- com.simplicite.util.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 colorjava.lang.String
getIcon()
Icon namejava.lang.String
getTextColor()
Text colorvoid
setBackgroundColor(java.lang.String color)
Set background colorvoid
setIcon(java.lang.String icon)
Set the icon namevoid
setTextColor(java.lang.String color)
Set text colorboolean
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 representationjava.lang.String
toString()
Generates a string representation of the rendering
-
-
-
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 classjava.lang.Object
- Returns:
- string
-
-