View Javadoc

1   /*
2      Copyright 2006 Martin van den Bemt
3   
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7   
8          http://www.apache.org/licenses/LICENSE-2.0
9   
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15  */
16  package org.xulux.guilayer.swing.properties;
17  
18  import org.xulux.api.gui.IPropertyHandler;
19  
20  /**
21   * An abstract for propertyhandlers for swing
22   * Use this abstract when you don't need any destroy or init.
23   *
24   * @author <a href="mailto:martin@mvdb.net">Martin van den Bemt</a>
25   * @version $Id: $
26   */
27  public abstract class SwingProperty implements IPropertyHandler {
28  
29      /**
30       * 
31       */
32      public SwingProperty() {
33          super();
34  
35      }
36  
37      /**
38       * @see org.xulux.api.gui.IPropertyHandler#init()
39       */
40      public void init() {
41      }
42  
43      /**
44       * @see org.xulux.api.gui.IPropertyHandler#getValue()
45       */
46      public Object getValue() {
47          return null;
48      }
49  
50      /**
51       * @see org.xulux.api.gui.IPropertyHandler#destroy()
52       */
53      public void destroy() {
54      }
55  
56  }