Class Theme

java.lang.Object
org.zkoss.web.theme.Theme
Direct Known Subclasses:
StandardTheme

public abstract class Theme extends Object
A Theme encapsulates theme-specific attributes. Each theme should have at least a name, which helps the web application to identify it. A Theme should be subclassed to define other attributes associated with concrete themes, such as file paths included in a theme, or variables that could be used to parameterize a theme.
Since:
6.5.2
Author:
Neil
  • Constructor Details

    • Theme

      public Theme()
      Instantiate a theme
    • Theme

      public Theme(String themeName)
      Instantiate a theme with the given name
      Parameters:
      themeName - name used to identify the theme
  • Method Details

    • getName

      public String getName()
      Returns:
      name used to identify the theme
    • setName

      public void setName(String themeName)
      Rename the theme
      Parameters:
      themeName - new name used by the theme
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      name of the theme