com.pow2.webgui.window
Class WindowDrawer

java.lang.Object
  extended by com.pow2.webgui.WidgetStrategy
      extended by com.pow2.webgui.WidgetDrawer
          extended by com.pow2.webgui.window.WindowDrawer
Direct Known Subclasses:
BOWindowDrawer, Pow2WindowDrawer

public abstract class WindowDrawer
extends WidgetDrawer

Abstract WindowDrawer class.
Use draw as the template method that executes getTemplateDescription.
Concrete subclasses should provide the implementation of the method above.

Author:
Luca Fossato

Field Summary
 
Fields inherited from class com.pow2.webgui.WidgetStrategy
widget
 
Constructor Summary
WindowDrawer(Widget widget)
          Constructor.
 
Method Summary
 StringBuffer draw()
          Gets the string representation of the Window widget.
protected abstract  StringBuffer getTemplateDescription(Window window, org.apache.velocity.VelocityContext context)
          Gets the description of the Window template.
 
Methods inherited from class com.pow2.webgui.WidgetStrategy
getWidget, setWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowDrawer

public WindowDrawer(Widget widget)
Constructor.

Parameters:
widget - the widget to draw
Method Detail

draw

public StringBuffer draw()
Gets the string representation of the Window widget.

Specified by:
draw in class WidgetDrawer
Returns:
the string representation of the Window widget

getTemplateDescription

protected abstract StringBuffer getTemplateDescription(Window window,
                                                       org.apache.velocity.VelocityContext context)
Gets the description of the Window template.

Returns:
the description of the Window template


Copyright © 2002-2005 Power Of Two S.r.l. All Rights Reserved.