private static class WebHandler.ThemeUI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
className
The theme class name
|
private boolean |
isDefault
Defines if this theme is default.
|
private java.lang.String |
presentationName
The theme presentation name
|
Constructor and Description |
---|
ThemeUI(java.lang.String name,
java.lang.String value,
boolean isDefault)
Creates the immutable instance for the given theme.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Gets its full class name.
|
java.lang.String |
getPresentationName()
Gets its presentation name.
|
private static java.lang.Class<?> |
getThemeClass(java.lang.String clsName)
Loads theme class definition.
|
boolean |
isDefault()
Indicates that this theme is the default UI theme.
|
static boolean |
isValidTheme(java.lang.String clsName)
Tests the validity of the given theme class name.
|
static java.lang.String |
toJSON(java.util.List<WebHandler.ThemeUI> list)
Serializes a given theme list into JSON string.
|
private final java.lang.String presentationName
private final java.lang.String className
private final boolean isDefault
public ThemeUI(java.lang.String name, java.lang.String value, boolean isDefault)
name
- The given theme presentation namevalue
- The given theme class nameisDefault
- Indicates if this theme is defaultpublic static java.lang.String toJSON(java.util.List<WebHandler.ThemeUI> list)
list
- The given list of ui themespublic static boolean isValidTheme(java.lang.String clsName)
clsName
- The given theme class namepublic java.lang.String getPresentationName()
public java.lang.String getClassName()
public boolean isDefault()
private static java.lang.Class<?> getThemeClass(java.lang.String clsName)
clsName
- The given theme class name