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   *  Strategy abstract class.
26   *
27   * @author  Luca Fossato
28   * @created  28 giugno 2002
29   */
30  public abstract class WidgetStrategy
31  {
32    /*** reference widget */
33    protected Widget widget  = null;
34  
35  
36    /***
37     *  Gets the widget attribute of the WidgetDrawer object
38     *
39     * @return  The widget value
40     */
41    public Widget getWidget()
42    {
43      return widget;
44    }
45  
46  
47    /***
48     *  Sets the widget attribute of the WidgetDrawer object
49     *
50     * @param  widget The new widget value
51     */
52    public void setWidget(Widget widget)
53    {
54      this.widget = widget;
55    }
56  }