public final class Theme
extends java.lang.Object
Constructor and Description |
---|
Theme(java.util.Properties themeProperties)
Constructs a new theme based on properties in the specified
properties object.
|
Modifier and Type | Method and Description |
---|---|
ThemeProperties |
getGlobalProperties()
Gets global properties of the theme.
|
java.lang.String |
getId() |
java.lang.String |
getName()
Gets the name of the theme.
|
ThemeProperties |
getPartProperties(java.lang.String partId)
Gets properties for a part.
|
ThemeProperties |
getStateProperties(java.lang.String partId,
java.lang.String stateId)
Gets properties for a particular part and state.
|
void |
setClassLoader(java.lang.ClassLoader cl)
Sets the ClassLoader to use for loading resources such as
images referred to in the theme file.
|
void |
setId(java.lang.String id) |
public Theme(java.util.Properties themeProperties)
themeProperties
- a properties object containing properties for
the theme. Must not be null.public void setClassLoader(java.lang.ClassLoader cl)
cl
- the classloader to use for loading resources. If none is
specified, then the classloader containing uic.jar is used.public void setId(java.lang.String id)
public java.lang.String getId()
public java.lang.String getName()
public ThemeProperties getGlobalProperties()
public ThemeProperties getPartProperties(java.lang.String partId)
partId
- the id of the part. Must not be null.public ThemeProperties getStateProperties(java.lang.String partId, java.lang.String stateId)
partId
- the id of the part. Must not be null.stateId
- the id of the state. Must not be null.