Class Theme

  • All Implemented Interfaces:
    Serializable

    public class Theme
    extends Object
    implements Serializable
    Theme encapsulates a collection of ThemeResources and a root directory to access them from. User: nbaker Date: 5/15/11
    See Also:
    Serialized Form
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • addResource

        public void addResource​(ThemeResource themeResource)
      • getThemeRootDir

        public String getThemeRootDir()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isHidden

        public boolean isHidden()
      • setHidden

        public void setHidden​(boolean hidden)
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getResponsive

        public boolean getResponsive()
        Gets a value that indicates whether the theme is responsive.
        Returns:
        `true` if responsive; `false`, otherwise.
      • setResponsive

        public void setResponsive​(boolean responsive)
        Sets whether the theme is responsive.

        Responsive themes enable certain CSS classes, e.g. `responsive`, to behave in a responsive manner.

        When the current theme is responsive, the CSS class `responsive-theme` is added to the HTML document's root element, `html`.

        Parameters:
        responsive - `true` if responsive; `false`, otherwise.