Package io.keikai.theme
Class SpreadsheetStandardTheme
- java.lang.Object
- 
- org.zkoss.web.theme.Theme
- 
- io.keikai.theme.SpreadsheetStandardTheme
 
 
- 
 public final class SpreadsheetStandardTheme extends org.zkoss.web.theme.ThemeA standard implementation of Theme.- Since:
- 3.5.0
- Author:
- neillee, RaymondChao
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSpreadsheetStandardTheme.ThemeOriginUsed to specify the origin of theme resources (e.g.
 - 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_DISPLAYName used to display the default themestatic StringDEFAULT_NAMEName used to identify the default themestatic SpreadsheetStandardTheme.ThemeOriginDEFAULT_ORIGINOrigin of the default theme, it is inside zss.jarstatic intDEFAULT_PRIORITYPriority of the default theme
 - 
Constructor SummaryConstructors Constructor Description SpreadsheetStandardTheme()Instantiate a default themeSpreadsheetStandardTheme(String themeName)Instantiate a standard themeSpreadsheetStandardTheme(String themeName, SpreadsheetStandardTheme.ThemeOrigin origin)Instantiate a standard themeSpreadsheetStandardTheme(String themeName, String displayName, int priority)Instantiate a standard themeSpreadsheetStandardTheme(String themeName, String displayName, int priority, SpreadsheetStandardTheme.ThemeOrigin origin)Instantiate a standard theme
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Comparator<SpreadsheetStandardTheme>getComparator()Defines the ordering of standard themes.StringgetDisplayName()SpreadsheetStandardTheme.ThemeOrigingetOrigin()intgetPriority()voidsetDisplayName(String displayName)Rename the display namevoidsetPriority(int priority)Adjust the priority of the theme
 
- 
- 
- 
Field Detail- 
DEFAULT_NAMEpublic static final String DEFAULT_NAME Name used to identify the default theme- See Also:
- Constant Field Values
 
 - 
DEFAULT_DISPLAYpublic static final String DEFAULT_DISPLAY Name used to display the default theme- See Also:
- Constant Field Values
 
 - 
DEFAULT_PRIORITYpublic static final int DEFAULT_PRIORITY Priority of the default theme- See Also:
- Constant Field Values
 
 - 
DEFAULT_ORIGINpublic static final SpreadsheetStandardTheme.ThemeOrigin DEFAULT_ORIGIN Origin of the default theme, it is inside zss.jar
 
- 
 - 
Constructor Detail- 
SpreadsheetStandardThemepublic SpreadsheetStandardTheme() Instantiate a default theme
 - 
SpreadsheetStandardThemepublic SpreadsheetStandardTheme(String themeName) Instantiate a standard theme- Parameters:
- themeName- name used to identify the theme
 
 - 
SpreadsheetStandardThemepublic SpreadsheetStandardTheme(String themeName, SpreadsheetStandardTheme.ThemeOrigin origin) Instantiate a standard theme- Parameters:
- themeName- name used to identify the theme
- origin- where the theme resource is located, jar or folder
 
 - 
SpreadsheetStandardThemepublic SpreadsheetStandardTheme(String themeName, String displayName, int priority) Instantiate a standard theme- Parameters:
- themeName- name used to identify the theme
- displayName- name used to display the theme
- priority- 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.
 
 - 
SpreadsheetStandardThemepublic SpreadsheetStandardTheme(String themeName, String displayName, int priority, SpreadsheetStandardTheme.ThemeOrigin origin) Instantiate a standard theme- Parameters:
- themeName- name used to identify the theme
- displayName- name used to display the theme
- priority- 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 located
 
 
- 
 - 
Method Detail- 
getDisplayNamepublic String getDisplayName() - Returns:
- the name used to display the theme
 
 - 
setDisplayNamepublic void setDisplayName(String displayName) Rename the display name- Parameters:
- displayName- the new name used to display the theme
 
 - 
getPrioritypublic int getPriority() - Returns:
- the priority of the theme
 
 - 
setPrioritypublic void setPriority(int priority) Adjust the priority of the theme- Parameters:
- priority- the new priority of the theme
 
 - 
getOriginpublic SpreadsheetStandardTheme.ThemeOrigin getOrigin() - Returns:
- the origin of the theme resource
 
 - 
getComparatorpublic static Comparator<SpreadsheetStandardTheme> getComparator() Defines the ordering of standard themes. Higher priority themes are ordered before the lower priority themes.- Returns:
- the comparator based on theme's priority values
 
 
- 
 
-