org.wings.plaf
Class LookAndFeel

java.lang.Object
  extended by org.wings.plaf.LookAndFeel
All Implemented Interfaces:
Serializable

public class LookAndFeel
extends Object
implements Serializable

A Look-and-Feel consists of a bunch of CGs and resource properties. wingS provides a pluggable look-and-feel (laf or plaf) concept similar to that of Swing. A certain plaf implementation normally adresses a specific browser platform.

See Also:
ComponentCG, Serialized Form

Field Summary
protected  Properties properties
           
 
Constructor Summary
LookAndFeel(Properties properties)
          Instantiate a laf using the war's classLoader.
 
Method Summary
 ResourceDefaults createDefaults()
          create a fresh CGDefaults map.
 String getDescription()
          Return a one line description of this look and feel implementation, e.g.
 String getName()
          Return a unique string that identifies this look and feel, e.g.
 String toString()
          Returns a string that displays and identifies this object's properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected Properties properties
Constructor Detail

LookAndFeel

public LookAndFeel(Properties properties)
Instantiate a laf using the war's classLoader.

Parameters:
properties - the configuration of the laf
Method Detail

getName

public String getName()
Return a unique string that identifies this look and feel, e.g. "konqueror"


getDescription

public String getDescription()
Return a one line description of this look and feel implementation, e.g. "Optimized for KDE's Konqueror Browser".


createDefaults

public ResourceDefaults createDefaults()
create a fresh CGDefaults map. One defaults map per Session is generated in its CGManager. It is necessary to create a fresh defaults map, since it caches values that might be modified within the sessions. A prominent example of changed values per sessions are the CG's themselves: CG-properties might be changed per session...

Returns:
the laf's defaults

toString

public String toString()
Returns a string that displays and identifies this object's properties.

Overrides:
toString in class Object
Returns:
a String representation of this object


wingS Swings ;-)