net.sourceforge.spark.helpers
Class SPARKHelperDecorator

java.lang.Object
  extended bynet.sourceforge.spark.helpers.SPARKHelperDecorator

public final class SPARKHelperDecorator
extends java.lang.Object

The Decorator is not part of the SPARK Widget framework, but is useful as a helper class for adding widget specific functionality to widgets during their construction phase. Generally used in conjunction with the SPARKHelperFactory class. $Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/helpers/SPARKHelperDecorator.java,v $

 $Log: SPARKHelperDecorator.java,v $
 Revision 1.2  2005/07/24 04:03:28  afettes
 no message

 Revision 1.1  2005/07/24 03:55:32  afettes
 Initial commit to CVS.
 

Version:
$Revision: 1.2 $ - $Date: 2005/07/24 04:03:28 $
Author:
$Author: afettes $, Alastair Fettes
See Also:
Widget

Field Summary
private static SPARKHelperDecorator decorator
           
 
Constructor Summary
private SPARKHelperDecorator()
          This is a singleton class.
 
Method Summary
 void decorate(Widget in_widget)
          Add special functionality to the given widget.
static SPARKHelperDecorator init()
          Create the SPARKHelperDecorator and retreive it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decorator

private static SPARKHelperDecorator decorator
Constructor Detail

SPARKHelperDecorator

private SPARKHelperDecorator()
This is a singleton class.

Method Detail

decorate

public void decorate(Widget in_widget)
Add special functionality to the given widget.

Parameters:
in_widget - The widget to decorate.

init

public static SPARKHelperDecorator init()
Create the SPARKHelperDecorator and retreive it.

Returns:
The SPARKHelperDecorator singleton.