Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.ui.themes
Class Theme

java.lang.Object
  extended by oracle.javatools.ui.themes.Theme

public final class Theme
extends java.lang.Object

A visual theme.

Since:
11.0

Constructor Summary
Theme(java.util.Properties themeProperties)
          Constructs a new theme based on properties in the specified properties object.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theme

public Theme(java.util.Properties themeProperties)
Constructs a new theme based on properties in the specified properties object.

Parameters:
themeProperties - a properties object containing properties for the theme. Must not be null.
Method Detail

setClassLoader

public void setClassLoader(java.lang.ClassLoader cl)
Sets the ClassLoader to use for loading resources such as images referred to in the theme file.

Parameters:
cl - the classloader to use for loading resources. If none is specified, then the classloader containing uic.jar is used.

setId

public void setId(java.lang.String id)

getId

public java.lang.String getId()

getName

public java.lang.String getName()
Gets the name of the theme.

Returns:
the name of the theme. May be null.

getGlobalProperties

public ThemeProperties getGlobalProperties()
Gets global properties of the theme.

Returns:
global properties of the theme. Will not return null.

getPartProperties

public ThemeProperties getPartProperties(java.lang.String partId)
Gets properties for a part.

Parameters:
partId - the id of the part. Must not be null.
Returns:
properties for the specified part. Will not return null.

getStateProperties

public ThemeProperties getStateProperties(java.lang.String partId,
                                          java.lang.String stateId)
Gets properties for a particular part and state.

Parameters:
partId - the id of the part. Must not be null.
stateId - the id of the state. Must not be null.
Returns:
properties for the specified part in the specified state.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.