com.pow2.webgui.tabbedselector
Class TabbedDrawer

java.lang.Object
  extended by com.pow2.webgui.WidgetStrategy
      extended by com.pow2.webgui.WidgetDrawer
          extended by com.pow2.webgui.tabbedselector.TabbedDrawer
Direct Known Subclasses:
BOTabbedDrawer

public abstract class TabbedDrawer
extends WidgetDrawer

Abstract TabbedPanelDrawer class.
Subclasses should override the following methods:

Author:
Luca Fossato

Field Summary
 
Fields inherited from class com.pow2.webgui.WidgetStrategy
widget
 
Constructor Summary
TabbedDrawer(Widget widget)
          Constructor.
 
Method Summary
 StringBuffer draw()
          Gets the string representation of this widget.
protected abstract  StringBuffer getBorder(boolean isLeft)
          Gets the description of the borders of the tabbedPanel.
protected abstract  StringBuffer getBottom()
          Gets the description of the bottom part of the TabbedPanel component.
protected abstract  StringBuffer getUpper()
          Gets the description of the upper part of the TabbedPanel component.
protected abstract  StringBuffer getUpperRight()
          Gets the description of the tabbedPanel upper-right part.
 
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

TabbedDrawer

public TabbedDrawer(Widget widget)
Constructor.

Parameters:
widget - the widget to draw
Method Detail

draw

public StringBuffer draw()
                  throws Exception
Gets the string representation of this widget.
This method uses the TemplateMethod design pattern; it calls the following methods in the proper order: TabbedPanel subclasses should override that methods providing custom return values.

Specified by:
draw in class WidgetDrawer
Returns:
the string representation of this widget.
Throws:
Exception - if any error occurs

getUpper

protected abstract StringBuffer getUpper()
Gets the description of the upper part of the TabbedPanel component.

Returns:
the description of the upper part of the TabbedPanel component.

getUpperRight

protected abstract StringBuffer getUpperRight()
Gets the description of the tabbedPanel upper-right part.

Returns:
the description of the tabbedPanel upper-right part.

getBorder

protected abstract StringBuffer getBorder(boolean isLeft)
Gets the description of the borders of the tabbedPanel.

Parameters:
isLeft - true for the left border description; false for the right border one.
Returns:
the description of the selected border of the tabbedPanel.

getBottom

protected abstract StringBuffer getBottom()
Gets the description of the bottom part of the TabbedPanel component.

Returns:
the description of the bottom part of the TabbedPanel component.


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