KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > Panel


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Copyright 2004 Jan Blok
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21 package com.izforge.izpack;
22
23 import java.io.Serializable JavaDoc;
24 import java.util.List JavaDoc;
25
26 /**
27  * @author Jan Blok
28  * @author Dennis Reil, <Dennis.Reil@reddot.de>
29  */

30 public class Panel implements Serializable JavaDoc
31 {
32
33     static final long serialVersionUID = 8886445274940938809L;
34
35     /** The panel classname. */
36     public String JavaDoc className;
37
38     /** The target operation system of this panel */
39     public List JavaDoc osConstraints = null;
40
41     /** the unique id of this panel */
42     protected String JavaDoc panelid;
43
44     public String JavaDoc getClassName() {
45       return this.className;
46     }
47
48     public void setClassName(String JavaDoc className) {
49       this.className = className;
50     }
51
52     public List JavaDoc getOsConstraints() {
53       return this.osConstraints;
54     }
55
56     public void setOsConstraints(List JavaDoc osConstraints) {
57       this.osConstraints = osConstraints;
58     }
59
60     public String JavaDoc getPanelid() {
61       if (this.panelid == null)
62       {
63         this.panelid = "UNKNOWN";
64       }
65       return this.panelid;
66     }
67
68     public void setPanelid(String JavaDoc panelid) {
69       this.panelid = panelid;
70     }
71 }
72
Popular Tags