Class SpreadsheetStandardTheme

java.lang.Object
org.zkoss.web.theme.Theme
io.keikai.theme.SpreadsheetStandardTheme

public final class SpreadsheetStandardTheme extends org.zkoss.web.theme.Theme
A standard implementation of Theme.
Since:
3.5.0
Author:
neillee, RaymondChao
  • Field Details

  • Constructor Details

    • SpreadsheetStandardTheme

      public SpreadsheetStandardTheme()
      Instantiate a default theme
    • SpreadsheetStandardTheme

      public SpreadsheetStandardTheme(String themeName)
      Instantiate a standard theme
      Parameters:
      themeName - name used to identify the theme
    • SpreadsheetStandardTheme

      public 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
    • SpreadsheetStandardTheme

      public 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.
    • SpreadsheetStandardTheme

      public 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 Details

    • getDisplayName

      public String getDisplayName()
      Returns:
      the name used to display the theme
    • setDisplayName

      public void setDisplayName(String displayName)
      Rename the display name
      Parameters:
      displayName - the new name used to display the theme
    • getPriority

      public int getPriority()
      Returns:
      the priority of the theme
    • setPriority

      public void setPriority(int priority)
      Adjust the priority of the theme
      Parameters:
      priority - the new priority of the theme
    • getOrigin

      Returns:
      the origin of the theme resource
    • getComparator

      public 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