Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.ui / src / main / java / org / gvsig / gui / beans / buttonspanel / IButtonsPanel.java @ 40561

History | View | Annotate | Download (9.45 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.gui.beans.buttonspanel;
25

    
26
/* gvSIG. Geographic Information System of the Valencian Government
27
 *
28
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
29
 * of the Valencian Government (CIT)
30
 * 
31
 * This program is free software; you can redistribute it and/or
32
 * modify it under the terms of the GNU General Public License
33
 * as published by the Free Software Foundation; either version 2
34
 * of the License, or (at your option) any later version.
35
 * 
36
 * This program is distributed in the hope that it will be useful,
37
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
38
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39
 * GNU General Public License for more details.
40
 *  
41
 * You should have received a copy of the GNU General Public License
42
 * along with this program; if not, write to the Free Software
43
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
44
 * MA  02110-1301, USA.
45
 * 
46
 */
47

    
48
/**
49
 * <p>Interface for adding support to enable/disable the necessary buttons of a {@link ButtonsPanel ButtonsPanel} component.</p>
50
 * <p>For example, if our panel has only the <i>accept</i> and <i>cancel</i> buttons, 
51
 *  will only need to have implemented the methods related with them. And, even, only one (the set...) of them,
52
 *   if, for instance, we don't need to know if a particular button is or isn't enabled.</p>    
53
 * 
54
 * @version 09/05/2008
55
 *
56
 * @author BorSanZa - Borja Sanchez Zamorano (borja.sanchez@iver.es)
57
 */
58
public interface IButtonsPanel {
59
        /**
60
         * <p>Enables (or disables) the <i>accept button</i>.</p>
61
         * 
62
         * @param b <code>true</code> to enable the <i>accept button</i>, otherwise <code>false</code>
63
         * 
64
         * @see #isEnabledAcceptButton()
65
         */
66
        public void setEnabledAcceptButton(boolean b);
67

    
68
        /**
69
         * <p>Determines whether the <i>accept button</i> is enabled. An enabled component can respond
70
         *  to user input and generate events.</p>
71
         * 
72
         * @return <code>true</code> if the <i>accept button</i> is enabled, <code>false</code> otherwise
73
         * 
74
         * @see #setEnabledAcceptButton(boolean)
75
         */
76
        public boolean isEnabledAcceptButton();
77

    
78
        /**
79
         * <p>Enables (or disables) the <i>cancel button</i>.</p>
80
         * 
81
         * @param b <code>true</code> to enable the <i>cancel button</i>, otherwise <code>false</code>
82
         * 
83
         * @see #isEnabledCancelButton()
84
         */
85
        public void setEnabledCancelButton(boolean b);
86

    
87
        /**
88
         * <p>Determines whether the <i>cancel button</i> is enabled. An enabled component can respond
89
         *  to user input and generate events.</p>
90
         * 
91
         * @return <code>true</code> if the <i>cancel button</i> is enabled, <code>false</code> otherwise
92
         * 
93
         * @see #setEnabledCancelButton(boolean)
94
         */
95
        public boolean isEnabledCancelButton();
96

    
97
        /**
98
         * <p>Enables (or disables) the <i>apply button</i>.</p>
99
         * 
100
         * @param b <code>true</code> to enable the <i>apply button</i>, otherwise <code>false</code>
101
         * 
102
         * @see #isEnabledApplyButton()
103
         */
104
        public void setEnabledApplyButton(boolean b);
105

    
106
        /**
107
         * <p>Determines whether the <i>apply button</i> is enabled. An enabled component can respond
108
         *  to user input and generate events.</p>
109
         * 
110
         * @return <code>true</code> if the <i>apply button</i> is enabled, <code>false</code> otherwise
111
         * 
112
         * @see #setEnabledApplyButton(boolean)
113
         */
114
        public boolean isEnabledApplyButton();
115

    
116
        /**
117
         * <p>Enables (or disables) the <i>yes button</i>.</p>
118
         * 
119
         * @param b <code>true</code> to enable the <i>yes button</i>, otherwise <code>false</code>
120
         * 
121
         * @see #isEnabledYesButton()
122
         */
123
        public void setEnabledYesButton(boolean b);
124

    
125
        /**
126
         * <p>Determines whether the <i>yes button</i> is enabled. An enabled component can respond
127
         *  to user input and generate events.</p>
128
         * 
129
         * @return <code>true</code> if the <i>yes button</i> is enabled, <code>false</code> otherwise
130
         * 
131
         * @see #setEnabledYesButton(boolean)
132
         */
133
        public boolean isEnabledYesButton();
134

    
135
        /**
136
         * <p>Enables (or disables) the <i>no button</i>.</p>
137
         * 
138
         * @param b <code>true</code> to enable the <i>no button</i>, otherwise <code>false</code>
139
         * 
140
         * @see #isEnabledNoButton()
141
         */
142
        public void setEnabledNoButton(boolean b);
143

    
144
        /**
145
         * <p>Determines whether the <i>no button</i> is enabled. An enabled component can respond
146
         *  to user input and generate events.</p>
147
         * 
148
         * @return <code>true</code> if the <i>no button</i> is enabled, <code>false</code> otherwise
149
         * 
150
         * @see #setEnabledNoButton(boolean)
151
         */
152
        public boolean isEnabledNoButton();
153

    
154
        /**
155
         * <p>Enables (or disables) the <i>close button</i>.</p>
156
         * 
157
         * @param b <code>true</code> to enable the <i>close button</i>, otherwise <code>false</code>
158
         * 
159
         * @see #isEnabledCloseButton()
160
         */
161
        public void setEnabledCloseButton(boolean b);
162

    
163
        /**
164
         * <p>Determines whether the <i>close button</i> is enabled. An enabled component can respond
165
         *  to user input and generate events.</p>
166
         * 
167
         * @return <code>true</code> if the <i>close button</i> is enabled, <code>false</code> otherwise
168
         * 
169
         * @see #setEnabledCloseButton(boolean)
170
         */
171
        public boolean isEnabledCloseButton();
172

    
173
        /**
174
         * <p>Enables (or disables) the <i>exit button</i>.</p>
175
         * 
176
         * @param b <code>true</code> to enable the <i>exit button</i>, otherwise <code>false</code>
177
         * 
178
         * @see #isEnabledExitButton()
179
         */
180
        public void setEnabledExitButton(boolean b);
181

    
182
        /**
183
         * <p>Determines whether the <i>exit button</i> is enabled. An enabled component can respond
184
         *  to user input and generate events.</p>
185
         * 
186
         * @return <code>true</code> if the <i>exit button</i> is enabled, <code>false</code> otherwise
187
         * 
188
         * @see #setEnabledExitButton(boolean)
189
         */
190
        public boolean isEnabledExitButton();
191

    
192
        /**
193
         * <p>Enables (or disables) the <i>see details button</i>.</p>
194
         * 
195
         * @param b <code>true</code> to enable the <i>see details button</i>, otherwise <code>false</code>
196
         * 
197
         * @see #isEnabledSeeDetailsButton()
198
         */
199
        public void setEnabledSeeDetailsButton(boolean b);
200

    
201
        /**
202
         * <p>Determines whether the <i>see details button</i> is enabled. An enabled component can respond
203
         *  to user input and generate events.</p>
204
         * 
205
         * @return <code>true</code> if the <i>see details button</i> is enabled, <code>false</code> otherwise
206
         * 
207
         * @see #setEnabledSeeDetailsButton(boolean)
208
         */
209
        public boolean isEnabledSeeDetailsButton();
210

    
211
        /**
212
         * <p>Enables (or disables) the <i>hide details button</i>.</p>
213
         * 
214
         * @param b <code>true</code> to enable the <i>hide details button</i>, otherwise <code>false</code>
215
         * 
216
         * @see #isEnabledHideDetailsButton()
217
         */
218
        public void setEnabledHideDetailsButton(boolean b);
219

    
220
        /**
221
         * <p>Determines whether the <i>hide details button</i> is enabled. An enabled component can respond
222
         *  to user input and generate events.</p>
223
         * 
224
         * @return <code>true</code> if the <i>hide details button</i> is enabled, <code>false</code> otherwise
225
         * 
226
         * @see #setEnabledHideDetailsButton(boolean)
227
         */
228
        public boolean isEnabledHideDetailsButton();
229

    
230
        /**
231
         * <p>Enables (or disables) the <i>pause button</i>.</p>
232
         * 
233
         * @param b <code>true</code> to enable the <i>pause button</i>, otherwise <code>false</code>
234
         * 
235
         * @see #isEnabledPauseButton()
236
         */
237
        public void setEnabledPauseButton(boolean b);
238

    
239
        /**
240
         * <p>Determines whether the <i>pause button</i> is enabled. An enabled component can respond
241
         *  to user input and generate events.</p>
242
         * 
243
         * @return <code>true</code> if the <i>pause button</i> is enabled, <code>false</code> otherwise
244
         * 
245
         * @see #setEnabledPauseButton(boolean)
246
         */
247
        public boolean isEnabledPauseButton();
248

    
249
        /**
250
         * <p>Enables (or disables) the <i>restart button</i>.</p>
251
         * 
252
         * @param b <code>true</code> to enable the <i>restart button</i>, otherwise <code>false</code>
253
         * 
254
         * @see #isEnabledRestartButton()
255
         */
256
        public void setEnabledRestartButton(boolean b);
257

    
258
        /**
259
         * <p>Determines whether the <i>restart button</i> is enabled. An enabled component can respond
260
         *  to user input and generate events.</p>
261
         * 
262
         * @return <code>true</code> if the <i>restart button</i> is enabled, <code>false</code> otherwise
263
         * 
264
         * @see #setEnabledRestartButton(boolean)
265
         */
266
        public boolean isEnabledRestartButton();
267

    
268
        /**
269
         * <p>Enables (or disables) the <i>save button</i>.</p>
270
         * 
271
         * @param b <code>true</code> to enable the <i>save button</i>, otherwise <code>false</code>
272
         * 
273
         * @see #isEnabledSaveButton()
274
         */
275
        public void setEnabledSaveButton(boolean b);
276

    
277
        /**
278
         * <p>Determines whether the <i>save button</i> is enabled. An enabled component can respond
279
         *  to user input and generate events.</p>
280
         * 
281
         * @return <code>true</code> if the <i>save button</i> is enabled, <code>false</code> otherwise
282
         * 
283
         * @see #setEnabledSaveButton(boolean)
284
         */
285
        public boolean isEnabledSaveButton();
286
}