Package org.pentaho.platform.api.ui
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResource(ThemeResource themeResource)
boolean
equals(Object o)
String
getId()
String
getName()
Set<ThemeResource>
getResources()
boolean
getResponsive()
Gets a value that indicates whether the theme is responsive.String
getThemeRootDir()
int
hashCode()
boolean
isHidden()
void
setHidden(boolean hidden)
void
setId(String id)
void
setName(String name)
void
setResources(Set<ThemeResource> resources)
void
setResponsive(boolean responsive)
Sets whether the theme is responsive.
-
-
-
Method Detail
-
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()
-
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.
-
-