Class Theme

  • Direct Known Subclasses:
    StandardTheme

    public abstract class Theme
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Theme()
      Instantiate a theme
      Theme​(java.lang.String themeName)
      Instantiate a theme with the given name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      void setName​(java.lang.String themeName)
      Rename the theme
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Theme

        public Theme()
        Instantiate a theme
      • Theme

        public Theme​(java.lang.String themeName)
        Instantiate a theme with the given name
        Parameters:
        themeName - name used to identify the theme
    • Method Detail

      • getName

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

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

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