Class Theme

java.lang.Object
org.pentaho.platform.api.ui.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:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getResources

      public Set<ThemeResource> getResources()
    • setResources

      public void setResources(Set<ThemeResource> resources)
    • addResource

      public void addResource(ThemeResource themeResource)
    • getThemeRootDir

      public String getThemeRootDir()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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.