Package org.pentaho.platform.api.ui
Class Theme
java.lang.Object
org.pentaho.platform.api.ui.Theme
- All Implemented Interfaces:
Serializable
Theme encapsulates a collection of ThemeResources and a root directory to access them from.
User: nbaker Date: 5/15/11
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(ThemeResource themeResource) boolean
getId()
getName()
boolean
Gets a value that indicates whether the theme is responsive.int
hashCode()
boolean
isHidden()
void
setHidden
(boolean hidden) void
void
void
setResources
(Set<ThemeResource> resources) void
setResponsive
(boolean responsive) Sets whether the theme is responsive.
-
Constructor Details
-
Theme
-
-
Method Details
-
getName
-
setName
-
getResources
-
setResources
-
addResource
-
getThemeRootDir
-
equals
-
hashCode
public int hashCode() -
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
getId
-
setId
-
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.
-