public final class StandardTheme extends Theme
Modifier and Type | Class and Description |
---|---|
static class |
StandardTheme.ThemeOrigin
Used to specify the origin of theme resources (e.g.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DISPLAY
Name used to display the default theme
|
static java.lang.String |
DEFAULT_NAME
Name used to identify the default theme
|
static StandardTheme.ThemeOrigin |
DEFAULT_ORIGIN
Origin of the default theme.
|
static int |
DEFAULT_PRIORITY
Priority of the default theme
|
Constructor and Description |
---|
StandardTheme()
Instantiate a default theme
|
StandardTheme(java.lang.String themeName)
Instantiate a standard theme
|
StandardTheme(java.lang.String themeName,
StandardTheme.ThemeOrigin origin)
Instantiate a standard theme
|
StandardTheme(java.lang.String themeName,
java.lang.String displayName,
int priority)
Instantiate a standard theme
|
StandardTheme(java.lang.String themeName,
java.lang.String displayName,
int priority,
StandardTheme.ThemeOrigin origin)
Instantiate a standard theme
|
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<StandardTheme> |
getComparator()
Defines the ordering of standard themes.
|
java.lang.String |
getDisplayName() |
StandardTheme.ThemeOrigin |
getOrigin() |
int |
getPriority() |
void |
setDisplayName(java.lang.String displayName)
Rename the display name
|
void |
setPriority(int priority)
Adjust the priority of the theme
|
public static final java.lang.String DEFAULT_NAME
public static final java.lang.String DEFAULT_DISPLAY
public static final int DEFAULT_PRIORITY
public static final StandardTheme.ThemeOrigin DEFAULT_ORIGIN
public StandardTheme()
public StandardTheme(java.lang.String themeName)
themeName
- name used to identify the themepublic StandardTheme(java.lang.String themeName, StandardTheme.ThemeOrigin origin)
themeName
- name used to identify the themeorigin
- where the theme resource is located, jar or folderpublic StandardTheme(java.lang.String themeName, java.lang.String displayName, int priority)
themeName
- name used to identify the themedisplayName
- name used to display the themepriority
- used to choose which theme to use, if no theme is
specified, and no preferred theme is set. Higher priority themes are
chosen over the lower priority themes. Lower the priority value, higher
the priority.public StandardTheme(java.lang.String themeName, java.lang.String displayName, int priority, StandardTheme.ThemeOrigin origin)
themeName
- name used to identify the themedisplayName
- name used to display the themepriority
- used to choose which theme to use, if no theme is
specified, and no preferred theme is set. Higher priority themes are
chosen over the lower priority themes. Lower the priority value, higher
the priority.origin
- where the theme resources (i.e. CSS and images) are locatedpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the new name used to display the themepublic int getPriority()
public void setPriority(int priority)
priority
- the new priority of the themepublic StandardTheme.ThemeOrigin getOrigin()
public static java.util.Comparator<StandardTheme> getComparator()
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.