01: /*
02: * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
03: *
04: * This file is part of TransferCM.
05: *
06: * TransferCM is free software; you can redistribute it and/or modify it under the
07: * terms of the GNU General Public License as published by the Free Software
08: * Foundation; either version 2 of the License, or (at your option) any later
09: * version.
10: *
11: * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
12: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14: * details.
15: *
16: * You should have received a copy of the GNU General Public License along with
17: * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
18: * Fifth Floor, Boston, MA 02110-1301 USA
19: */
20:
21: package com.methodhead.shim;
22:
23: /**
24: * Defines a region defined in a template.
25: */
26: public class Panel implements Cloneable {
27:
28: // constructors /////////////////////////////////////////////////////////////
29:
30: // constants ////////////////////////////////////////////////////////////////
31:
32: // classes //////////////////////////////////////////////////////////////////
33:
34: // methods //////////////////////////////////////////////////////////////////
35:
36: public Object clone() {
37: try {
38: return super .clone();
39: } catch (CloneNotSupportedException e) {
40: return null;
41: }
42: }
43:
44: // properties ///////////////////////////////////////////////////////////////
45:
46: /**
47: * Returns the panel's name.
48: */
49: public String getName() {
50: return name_;
51: }
52:
53: /**
54: * Sets the panel's name.
55: */
56: public void setName(String name) {
57: name_ = name;
58: }
59:
60: /**
61: * Returns the panel's module's class name.
62: */
63: public String getModuleClass() {
64: return moduleClass_;
65: }
66:
67: /**
68: * Sets the panel's module class name.
69: */
70: public void setModuleClass(String moduleClass) {
71: moduleClass_ = moduleClass;
72: }
73:
74: /**
75: * Returns the panel's module object as set by {@link #setModule setModule()}
76: * (nothing is instatiated by this method).
77: */
78: public Module getModule() {
79: return module_;
80: }
81:
82: /**
83: * Sets the panel's module object.
84: */
85: public void setModule(Module module) {
86: module_ = module;
87: }
88:
89: // attributes ///////////////////////////////////////////////////////////////
90:
91: private String name_ = "";
92:
93: private String moduleClass_ = "";
94:
95: private Module module_ = null;
96: }
|