org.zkoss.web.theme
Class Theme

java.lang.Object
  extended by org.zkoss.web.theme.Theme
Direct Known Subclasses:
StandardTheme

public abstract class Theme
extends java.lang.Object

A Theme encapsulates theme-specific attributes. Each theme should have at least a name, which helps the web application to identify it. A Theme should be subclassed to define other attributes associated with concrete themes, such as file paths included in a theme, or variables that could be used to parameterize a theme.

Since:
6.5.2
Author:
Neil

Constructor Summary
Theme()
          Instantiate a theme
Theme(java.lang.String themeName)
          Instantiate a theme with the given name
 
Method Summary
 java.lang.String getName()
           
 void setName(java.lang.String themeName)
          Rename the theme
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Theme

public Theme()
Instantiate a theme


Theme

public Theme(java.lang.String themeName)
Instantiate a theme with the given name

Parameters:
themeName - name used to identify the theme
Method Detail

getName

public java.lang.String getName()
Returns:
name used to identify the theme

setName

public void setName(java.lang.String themeName)
Rename the theme

Parameters:
themeName - new name used by the theme

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
name of the theme


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo