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 ControllerActionModel {
31: private String m_component = "";
32: private String m_url = "";
33: private String operation = "Refresh";
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 addParam(ActionParamModel aParam) {
45: this .getParams().add(aParam);
46: }
47:
48: public List getParams() {
49: if (this .m_params == null) {
50: this .m_params = new Vector(1);
51: }
52: return this .m_params;
53: }
54:
55: public String getUrl() {
56: return m_url;
57: }
58:
59: public void setUrl(String m_url) {
60: this .m_url = m_url;
61: }
62:
63: public String getOperation() {
64: return operation;
65: }
66:
67: public void setOperation(String operation) {
68: this.operation = operation;
69: }
70: }
|