01: /*
02: * Copyright (C) 2007 Jared Alexander Spigner
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: * jspigner@openjx.org
19: *
20: * JXPropertyAdapter.java
21: *
22: * Created on June 8, 2007, 10:30 PM
23: *
24: */
25:
26: package org.openjx.jx;
27:
28: import java.beans.PropertyChangeEvent;
29: import java.beans.PropertyChangeListener;
30:
31: import org.openjx.core.JXTranslator;
32:
33: /**
34: * This is an adapter class to the PropertyChangeListener interface. It allows us
35: * to bind swing values to JX properties and vice versa. It is also used in
36: * other forms of binding.
37: *
38: * @author Jared Spigner
39: */
40: public class JXPropertyAdapter implements PropertyChangeListener {
41:
42: /** This is a reference to the JXTranslator. */
43: public JXTranslator jxTranslator;
44:
45: /**
46: * This the constructor for the JXPropertyAdapter class. It creates a new
47: * instance of JXPropertyAdapter.
48: */
49: public JXPropertyAdapter() {
50: this .jxTranslator = new JXTranslator();
51: }
52:
53: /**
54: * This method handles property change events.
55: *
56: * @param evt is the event that was fired off.
57: */
58: public void propertyChange(PropertyChangeEvent evt) {
59: }
60:
61: }
|