01: package org.swingml.action;
02:
03: /**
04: * @author dpitt
05: */
06: public class SelectionMadeResult extends RemoteActionResult implements
07: IActionResult {
08:
09: String component = null;
10: String method = null;
11: String type = null;
12: String value = null;
13:
14: /**
15: * @return Returns the component.
16: */
17: public String getComponent() {
18: return component;
19: }
20:
21: /**
22: * @return Returns the method.
23: */
24: public String getMethod() {
25: return method;
26: }
27:
28: /**
29: * @return Returns the type.
30: */
31: public String getType() {
32: return type;
33: }
34:
35: /**
36: * @return Returns the values.
37: */
38: public String getValue() {
39: return value;
40: }
41:
42: /**
43: * @param component
44: * The component to set.
45: */
46: public void setComponent(String component) {
47: this .component = component;
48: }
49:
50: /**
51: * @param method
52: * The method to set.
53: */
54: public void setMethod(String method) {
55: this .method = method;
56: }
57:
58: /**
59: * @param type
60: * The type to set.
61: */
62: public void setType(String type) {
63: this .type = type;
64: }
65:
66: /**
67: * @param values
68: * The values to set.
69: */
70: public void setValue(String value) {
71: this .value = value;
72: }
73:
74: public String toString() {
75: return getComponent() + "-" + getMethod() + "-" + getType()
76: + "-" + getValue();
77: }
78:
79: /**
80: * FIXME - We don't have any XML resources on the classpath. This should use
81: * a contenthandler to build this XML formally.
82: */
83: public String xmlValue() {
84: // TODO - implement this
85: return null;
86: }
87: }
|