public final class SpreadsheetStandardTheme
extends org.zkoss.web.theme.Theme
Modifier and Type | Class and Description |
---|---|
static class |
SpreadsheetStandardTheme.ThemeOrigin
Used to specify the origin of theme resources (e.g.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DISPLAY
Name used to display the default theme
|
static String |
DEFAULT_NAME
Name used to identify the default theme
|
static SpreadsheetStandardTheme.ThemeOrigin |
DEFAULT_ORIGIN
Origin of the default theme, it is inside zss.jar
|
static int |
DEFAULT_PRIORITY
Priority of the default theme
|
Constructor and Description |
---|
SpreadsheetStandardTheme()
Instantiate a default theme
|
SpreadsheetStandardTheme(String themeName)
Instantiate a standard theme
|
SpreadsheetStandardTheme(String themeName,
SpreadsheetStandardTheme.ThemeOrigin origin)
Instantiate a standard theme
|
SpreadsheetStandardTheme(String themeName,
String displayName,
int priority)
Instantiate a standard theme
|
SpreadsheetStandardTheme(String themeName,
String displayName,
int priority,
SpreadsheetStandardTheme.ThemeOrigin origin)
Instantiate a standard theme
|
Modifier and Type | Method and Description |
---|---|
static Comparator<SpreadsheetStandardTheme> |
getComparator()
Defines the ordering of standard themes.
|
String |
getDisplayName() |
SpreadsheetStandardTheme.ThemeOrigin |
getOrigin() |
int |
getPriority() |
void |
setDisplayName(String displayName)
Rename the display name
|
void |
setPriority(int priority)
Adjust the priority of the theme
|
public static final String DEFAULT_NAME
public static final String DEFAULT_DISPLAY
public static final int DEFAULT_PRIORITY
public static final SpreadsheetStandardTheme.ThemeOrigin DEFAULT_ORIGIN
public SpreadsheetStandardTheme()
public SpreadsheetStandardTheme(String themeName)
themeName
- name used to identify the themepublic SpreadsheetStandardTheme(String themeName, SpreadsheetStandardTheme.ThemeOrigin origin)
themeName
- name used to identify the themeorigin
- where the theme resource is located, jar or folderpublic SpreadsheetStandardTheme(String themeName, 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 SpreadsheetStandardTheme(String themeName, String displayName, int priority, SpreadsheetStandardTheme.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 String getDisplayName()
public void setDisplayName(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 SpreadsheetStandardTheme.ThemeOrigin getOrigin()
public static Comparator<SpreadsheetStandardTheme> getComparator()
Copyright © 2020. All rights reserved.