KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > methodhead > shim > Panel


1 /*
2  * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
3  *
4  * This file is part of TransferCM.
5  *
6  * TransferCM is free software; you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation; either version 2 of the License, or (at your option) any later
9  * 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
27 implements
28   Cloneable JavaDoc {
29
30   // constructors /////////////////////////////////////////////////////////////
31

32   // constants ////////////////////////////////////////////////////////////////
33

34   // classes //////////////////////////////////////////////////////////////////
35

36   // methods //////////////////////////////////////////////////////////////////
37

38   public Object JavaDoc clone() {
39     try {
40       return super.clone();
41     }
42     catch ( CloneNotSupportedException JavaDoc e ) {
43       return null;
44     }
45   }
46
47   // properties ///////////////////////////////////////////////////////////////
48

49   /**
50    * Returns the panel's name.
51    */

52   public String JavaDoc getName() {
53     return name_;
54   }
55
56   /**
57    * Sets the panel's name.
58    */

59   public void setName( String JavaDoc name ) {
60     name_ = name;
61   }
62
63   /**
64    * Returns the panel's module's class name.
65    */

66   public String JavaDoc getModuleClass() {
67     return moduleClass_;
68   }
69
70   /**
71    * Sets the panel's module class name.
72    */

73   public void setModuleClass( String JavaDoc moduleClass ) {
74     moduleClass_ = moduleClass;
75   }
76
77   /**
78    * Returns the panel's module object as set by {@link #setModule setModule()}
79    * (nothing is instatiated by this method).
80    */

81   public Module getModule() {
82     return module_;
83   }
84
85   /**
86    * Sets the panel's module object.
87    */

88   public void setModule( Module module ) {
89     module_ = module;
90   }
91
92   // attributes ///////////////////////////////////////////////////////////////
93

94   private String JavaDoc name_ = "";
95
96   private String JavaDoc moduleClass_ = "";
97
98   private Module module_ = null;
99 }
100
Popular Tags