View Javadoc

1   /***
2    *  The contents of this file are subject to the Mozilla Public
3    *  License Version 1.1 (the "License"); you may not use this file
4    *  except in compliance with the License. You may obtain a copy of
5    *  the License at http://www.mozilla.org/MPL/
6    *
7    *  Software distributed under the License is distributed on an "AS
8    *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9    *  implied. See the License for the specific language governing
10   *  rights and limitations under the License.
11   *
12   *  The Original Code is pow2WebGui library.
13   *
14   *  The Initial Owner of the Original Code is Power Of Two S.R.L.
15   *  Portions created by Power Of Two S.R.L. are Copyright (C) Power Of Two S.R.L.
16   *  All Rights Reserved.
17   *
18   * Contributor(s):
19   */
20  
21  package com.pow2.webgui;
22  
23  
24  /***
25   *  WidgetDrawer abstract class.
26   *
27   * @author  Luca Fossato
28   * @created  28 giugno 2002
29   */
30  public abstract class WidgetDrawer extends WidgetStrategy
31  {
32    /***
33     * Constructor.
34     *
35     * @param widget the widget to draw
36     */
37    public WidgetDrawer(Widget widget)
38    {
39      this.widget = widget;
40    }
41  
42  
43    /***
44     *  Gets the string representation of the widget.
45     *
46     * @return  the string representation of the widget
47     * @exception Exception if any error occurs
48     */
49    public abstract StringBuffer draw() throws Exception;
50  }