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: * JXActionAdapter.java
21: *
22: * Created on October 24, 2007, 11:39 PM
23: *
24: * To change this template, choose Tools | Template Manager
25: * and open the template in the editor.
26: */
27:
28: package org.openjx.jx;
29:
30: import java.awt.event.ActionEvent;
31: import java.awt.event.ActionListener;
32:
33: import org.openjx.core.JXTranslator;
34:
35: /**
36: * This is an adapter class to the ActionListener interface. It allows us
37: * to bind swing values to JX properties and vice versa. It is also used in
38: * other forms of binding.
39: *
40: * @author Jared Spigner
41: */
42: public class JXActionAdapter implements ActionListener {
43: /** This is a reference to the JXTranslator. */
44: public JXTranslator jxTranslator;
45:
46: /**
47: * This the constructor for the JXActionAdapter class. It creates a new
48: * instance of JXActionAdapter.
49: */
50: public JXActionAdapter() {
51: this .jxTranslator = new JXTranslator();
52: }
53:
54: /**
55: * This method handles action change events.
56: *
57: * @param evt is the event that was fired off.
58: */
59: public void actionPerformed(ActionEvent evt) {
60: }
61:
62: }
|