KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > lifl > eclipse > plugin > project > utils > SWT > SetterGroupPreference


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2003 USTL - LIFL - GOAL
5 Contact: openccm-team@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Jerome Offroy.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26 /*
27  * Created on 10 juin 2003 by jerome OFFROY (offroy@lifl.fr)
28  *
29  */

30
31 package org.omg.lifl.eclipse.plugin.project.utils.SWT;
32
33 /**
34  * This class represents a configuration element for the OpenCCM build.properties config file
35  *
36  * @author offroy@lifl.fr
37  *
38  * @version 0.1
39  */

40 public class SetterGroupPreference {
41
42     private String JavaDoc _GroupLabel;
43     private String JavaDoc _Name;
44     private String JavaDoc _Label;
45     private boolean enable = true;
46
47     /**
48      * @param groupLabel the name of the SWT Group
49      * @param label the label for the SWT configuration element
50      * @param name the value for the configuration element
51      */

52     public SetterGroupPreference(String JavaDoc groupLabel, String JavaDoc label, String JavaDoc name) {
53         set_GroupLabel(groupLabel);
54         set_Label(label);
55         set_Name(name);
56     }
57
58     /**
59      * @return a String which is the label of the SWT group
60      */

61     public String JavaDoc get_GroupLabel() {
62         return _GroupLabel;
63     }
64
65     /**
66      * @return a String which is the label for the element to configure
67      */

68     public String JavaDoc get_Label() {
69         return _Label;
70     }
71
72     /**
73      * @return a String which is the name for the element to configure
74      */

75     public String JavaDoc get_Name() {
76         return _Name;
77     }
78
79     /**
80      * @param string is the name for the SWT Group
81      */

82     public void set_GroupLabel(String JavaDoc string) {
83         _GroupLabel = string;
84     }
85
86     /**
87      * @param string is the name for the label of the element to configure
88      */

89     public void set_Label(String JavaDoc string) {
90         _Label = string;
91     }
92
93     /**
94      * @param string is the name for the element to configure
95      */

96     public void set_Name(String JavaDoc string) {
97         _Name = string;
98     }
99
100     /**
101      * @return true if the configuration element is enable
102      * flase if the configuration element is not enable
103      */

104     public boolean isEnable() {
105         return enable;
106     }
107
108     /**
109      * @param b
110      */

111     public void setEnable(boolean b) {
112         enable = b;
113     }
114
115 }
116
Popular Tags