01: /* SwingML
02: * Copyright (C) 2002 Robert Morris.
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 of the License, or (at your option) 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
16: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17: * Boston, MA 02111-1307, USA.
18: *
19: * Authors:
20: * Robert Morris <robertj@morris.net>
21: * Alessandro Di Bella <alessandro.dibella@bpeng.com>
22: *
23: */
24:
25: package org.swingml.model;
26:
27: import java.util.List;
28: import java.util.Vector;
29:
30: public class ExternalActionModel {
31: private String m_component = "";
32: private Class m_externalClass = null;
33: private Class m_externalFactoryClass = null;
34: private Vector m_params = null;
35:
36: public void setComponent(String aComponent) {
37: this .m_component = aComponent;
38: }
39:
40: public String getComponent() {
41: return this .m_component;
42: }
43:
44: public void setExternalClass(Class anExternalClass) {
45: this .m_externalClass = anExternalClass;
46: }
47:
48: public Class getExternalClass() {
49: return this .m_externalClass;
50: }
51:
52: public void addParam(ActionParamModel aParam) {
53: this .getParams().add(aParam);
54: }
55:
56: public List getParams() {
57: if (this .m_params == null) {
58: this .m_params = new Vector(1);
59: }
60: return this .m_params;
61: }
62:
63: /**
64: * @return Returns the m_externalFactoryClass.
65: */
66: public final Class getExternalFactoryClass() {
67: return m_externalFactoryClass;
68: }
69:
70: /**
71: * @param factoryClass The m_externalFactoryClass to set.
72: */
73: public final void setExternalFactoryClass(Class factoryClass) {
74: m_externalFactoryClass = factoryClass;
75: }
76: }
|