Package com.iizix.prop.ui.device
Enum UIThemes.Name
- java.lang.Object
- java.lang.Enum<UIThemes.Name>
- com.iizix.prop.ui.device.UIThemes.Name
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UIThemes.Name>
- Enclosing class:
- UIThemes
public static enum UIThemes.Name extends java.lang.Enum<UIThemes.Name>
The names of available themes for the Client. One desktop theme is always used, and can be combined with a mobile theme (or none).- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description DESKTOP_DBOOTSTRAP
Desktop theme: DBOOTSTRAP ("dbootstrap").DESKTOP_FLAT
Desktop theme: FLAT ("flat").MOBILE_IOS_7
Mobile theme: MOBILE_IOS_7 ("ios7") iOS 7 and better.
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
The description.boolean
isMobile
Flag for mobile.java.lang.String
name
The name.int
priority
Priority based: the higher the number to higher priority.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getFullPathCSS()
Gets the full path names of the theme CSS files array that is needed for the theme in question.java.lang.String[]
getShortCSS()
Gets the short path names of the theme CSS files array that is needed for the theme in question.static UIThemes.Name
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UIThemes.Name[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
DESKTOP_FLAT
public static final UIThemes.Name DESKTOP_FLAT
Desktop theme: FLAT ("flat").
DESKTOP_DBOOTSTRAP
public static final UIThemes.Name DESKTOP_DBOOTSTRAP
Desktop theme: DBOOTSTRAP ("dbootstrap").
MOBILE_IOS_7
public static final UIThemes.Name MOBILE_IOS_7
Mobile theme: MOBILE_IOS_7 ("ios7") iOS 7 and better.
Method Detail
values
public static UIThemes.Name[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UIThemes.Name c : UIThemes.Name.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static UIThemes.Name valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getShortCSS
public java.lang.String[] getShortCSS()
Gets the short path names of the theme CSS files array that is needed for the theme in question.- Returns:
- An array of strings, starting with "D/" or "M/" that should be replaced with "/$release.dojo.root$/dijit/themes/" and "/$release.dojo.root$/dojox/mobile/themes/" respectively.
getFullPathCSS
public java.lang.String[] getFullPathCSS()
Gets the full path names of the theme CSS files array that is needed for the theme in question.- Returns:
- An array of path file names to CSS files located in the web server root.