svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / panelGroup / PanelGroupDialog.java @ 28960
History | View | Annotate | Download (16 KB)
1 | 15734 | vcaballero | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | */
|
||
19 | |||
20 | package com.iver.cit.gvsig.panelGroup; |
||
21 | |||
22 | import java.awt.BorderLayout; |
||
23 | import java.awt.Dimension; |
||
24 | import java.io.Serializable; |
||
25 | import java.util.Hashtable; |
||
26 | |||
27 | 17901 | vcaballero | import javax.swing.JOptionPane; |
28 | |||
29 | 17026 | vcaballero | import org.gvsig.exceptions.BaseException; |
30 | 17901 | vcaballero | import org.gvsig.gui.beans.Messages; |
31 | 15734 | vcaballero | import org.gvsig.gui.beans.buttonspanel.ButtonsPanel; |
32 | import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
||
33 | import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
||
34 | 17543 | jmvivo | import org.gvsig.gui.beans.buttonspanel.IButtonsPanel; |
35 | 15734 | vcaballero | import org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel; |
36 | import org.gvsig.gui.beans.panelGroup.AbstractPanelGroup; |
||
37 | import org.gvsig.gui.beans.panelGroup.IPanelGroup; |
||
38 | 17026 | vcaballero | import org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupException; |
39 | import org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException; |
||
40 | import org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelException; |
||
41 | 15734 | vcaballero | import org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader; |
42 | import org.gvsig.gui.beans.panelGroup.panels.IPanel; |
||
43 | |||
44 | import com.iver.andami.PluginServices; |
||
45 | 17743 | vcaballero | import com.iver.andami.messages.NotificationManager; |
46 | 15734 | vcaballero | import com.iver.andami.ui.mdiManager.IWindow; |
47 | import com.iver.andami.ui.mdiManager.IWindowListener; |
||
48 | import com.iver.andami.ui.mdiManager.WindowInfo; |
||
49 | |||
50 | /**
|
||
51 | * <p>Graphical component that is represented as an {@link IWindow IWindow}, and that has two immediate internal
|
||
52 | * panels, the top is a {@link PanelGroup PanelGroup}, and the bottom is a {@link PanelGroupDialog PanelGroupDialog}
|
||
53 | * of <code>PanelGroupDialog.BUTTONS_ACCEPTCANCELAPPLY</code> type.</p>
|
||
54 | 15806 | vcaballero | *
|
55 | 15734 | vcaballero | * @see DefaultButtonsPanel
|
56 | 15806 | vcaballero | *
|
57 | 15734 | vcaballero | * @version 15/10/2007
|
58 | 15806 | vcaballero | * @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
|
59 | 15734 | vcaballero | */
|
60 | 17543 | jmvivo | public class PanelGroupDialog extends DefaultButtonsPanel implements ButtonsPanelListener, IWindow, IWindowListener, IPanelGroup, IButtonsPanel, Serializable { |
61 | 17743 | vcaballero | private static final long serialVersionUID = 6267404338808012765L; |
62 | 17543 | jmvivo | |
63 | 15734 | vcaballero | /**
|
64 | * <p>Default width.</p>
|
||
65 | */
|
||
66 | 17743 | vcaballero | protected static int defaultWidth = 530; |
67 | 15806 | vcaballero | |
68 | 15734 | vcaballero | /**
|
69 | * <p>Default height.</p>
|
||
70 | */
|
||
71 | 17743 | vcaballero | protected static int defaultHeight = 432; |
72 | 15734 | vcaballero | |
73 | /**
|
||
74 | * <p>This graphical component has a panel that allows work {@link IPanel IPanel}.</p>
|
||
75 | 15806 | vcaballero | *
|
76 | 15734 | vcaballero | * @see #getPanelGroup()
|
77 | */
|
||
78 | 17743 | vcaballero | protected IPanelGroup panelGroup;
|
79 | 15734 | vcaballero | |
80 | /**
|
||
81 | 16692 | vcaballero | * <p>Properties about the managing of this dialog by <i>Andami</i>.</p>
|
82 | 15734 | vcaballero | */
|
83 | 16692 | vcaballero | private WindowInfo windowInfo;
|
84 | 15734 | vcaballero | |
85 | /**
|
||
86 | * <p>Default constructor with two parameters, that creates a panel with an {@link AbstractPanelGroup AbstractPanelGroup}
|
||
87 | * on top and another with <i>accept</i>, <i>apply</i>, and <i>cancel</i> buttons on bottom.</p>
|
||
88 | 15806 | vcaballero | *
|
89 | 15734 | vcaballero | * @param windowTitle title for this <code>IWindow</code>
|
90 | * @param PanelGroup kind of panel for work with this <code>IWindow</code>
|
||
91 | */
|
||
92 | 17743 | vcaballero | public PanelGroupDialog(String windowTitle, IPanelGroup panelGroup) { |
93 | 15734 | vcaballero | super(ButtonsPanel.BUTTONS_ACCEPTCANCELAPPLY);
|
94 | 15806 | vcaballero | |
95 | 17026 | vcaballero | windowInfo = new WindowInfo();
|
96 | windowInfo.setTitle(PluginServices.getText(this, windowTitle));
|
||
97 | windowInfo.setWidth(defaultWidth); |
||
98 | windowInfo.setHeight(defaultHeight); |
||
99 | |||
100 | 15734 | vcaballero | this.panelGroup = panelGroup;
|
101 | |||
102 | initialize(); |
||
103 | } |
||
104 | |||
105 | /**
|
||
106 | * <p>Default constructor with six parameters, that creates a panel with an {@link AbstractPanelGroup AbstractPanelGroup}
|
||
107 | 15806 | vcaballero | * on top and another with <i>accept</i>, <i>apply</i>, and <i>cancel</i> buttons on bottom.</p>
|
108 | 15734 | vcaballero | * <p>Last parameter is the {@link PanelGroup PanelGroup} graphical component that
|
109 | 15806 | vcaballero | * this panel will have, and the previous are information to initialize this {@link IWindow IWindow}.</p>
|
110 | *
|
||
111 | * @param additionalInfo additional information about this <code>IWindow</code>
|
||
112 | 15734 | vcaballero | * @param windowTitle title for this <code>IWindow</code>
|
113 | * @param width width for this component
|
||
114 | * @param height height for this component
|
||
115 | 16692 | vcaballero | * @param windowInfoProperties properties about the managing of this dialog by <i>Andami</i>
|
116 | 15734 | vcaballero | * @param PanelGroup kind of panel for work with this <code>IWindow</code>
|
117 | */
|
||
118 | 17743 | vcaballero | public PanelGroupDialog(String additionalInfo, String windowTitle, int width, int height, byte windowInfoProperties, IPanelGroup panelGroup) { |
119 | 15734 | vcaballero | super(ButtonsPanel.BUTTONS_ACCEPTCANCELAPPLY);
|
120 | |||
121 | 17026 | vcaballero | windowInfo = new WindowInfo(windowInfoProperties);
|
122 | windowInfo.setAdditionalInfo(additionalInfo); |
||
123 | windowInfo.setTitle(PluginServices.getText(this, windowTitle));
|
||
124 | windowInfo.setWidth(width); |
||
125 | windowInfo.setHeight(height); |
||
126 | |||
127 | 15734 | vcaballero | this.panelGroup = panelGroup;
|
128 | |||
129 | initialize(); |
||
130 | } |
||
131 | |||
132 | /**
|
||
133 | * <p>This method is used to execute initialization tasks of this graphical component.</p>
|
||
134 | */
|
||
135 | private void initialize() { |
||
136 | setLayout(new BorderLayout()); |
||
137 | 15806 | vcaballero | addButtonPressedListener(this);
|
138 | 17543 | jmvivo | |
139 | this.panelGroup.setParentPanelGroup(this); |
||
140 | |||
141 | 15734 | vcaballero | // Mask possible extra exceptions
|
142 | if (panelGroup != null) { |
||
143 | 17743 | vcaballero | add((AbstractPanelGroup)panelGroup, BorderLayout.CENTER);
|
144 | 15806 | vcaballero | |
145 | 17543 | jmvivo | // Holds the preferred size
|
146 | if ((windowInfo.getWidth() > getPreferredSize().width) || (windowInfo.getHeight() > getPreferredSize().height))
|
||
147 | setPreferredSize(new Dimension(Math.max(windowInfo.getWidth(), getWidth()), Math.max(windowInfo.getHeight(), getHeight()))); |
||
148 | 15734 | vcaballero | } |
149 | } |
||
150 | |||
151 | /**
|
||
152 | * <p>Determinates if this panel is resizable or not.</p>
|
||
153 | 15806 | vcaballero | *
|
154 | 15734 | vcaballero | * @return <code>true</code> if it's resizable; <code>false</code> otherwise.
|
155 | */
|
||
156 | public boolean isResizable() { |
||
157 | 17026 | vcaballero | return windowInfo.isResizable();
|
158 | 15734 | vcaballero | } |
159 | |||
160 | /**
|
||
161 | * <p>Closes this {@link IWindow IWindow}.</p>
|
||
162 | */
|
||
163 | public void close() { |
||
164 | 17743 | vcaballero | PluginServices.getMDIManager().closeWindow(this);
|
165 | 15734 | vcaballero | } |
166 | |||
167 | /*
|
||
168 | * (non-Javadoc)
|
||
169 | * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
|
||
170 | */
|
||
171 | public WindowInfo getWindowInfo() {
|
||
172 | 16692 | vcaballero | return windowInfo;
|
173 | 15734 | vcaballero | } |
174 | |||
175 | /*
|
||
176 | * (non-Javadoc)
|
||
177 | * @see org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener#actionButtonPressed(org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent)
|
||
178 | */
|
||
179 | public void actionButtonPressed(ButtonsPanelEvent e) { |
||
180 | // Masks possible extra exceptions
|
||
181 | if (panelGroup != null) { |
||
182 | switch (e.getButton()) {
|
||
183 | case ButtonsPanel.BUTTON_ACCEPT:
|
||
184 | 17743 | vcaballero | accept(); |
185 | 15734 | vcaballero | close(); |
186 | break;
|
||
187 | case ButtonsPanel.BUTTON_APPLY:
|
||
188 | 17743 | vcaballero | apply(); |
189 | 15734 | vcaballero | break;
|
190 | case ButtonsPanel.BUTTON_CANCEL:
|
||
191 | 17743 | vcaballero | cancel(); |
192 | 15734 | vcaballero | close(); |
193 | break;
|
||
194 | } |
||
195 | } |
||
196 | } |
||
197 | |||
198 | /*
|
||
199 | * (non-Javadoc)
|
||
200 | * @see com.iver.andami.ui.mdiManager.IWindowListener#windowActivated()
|
||
201 | */
|
||
202 | public void windowActivated() {} |
||
203 | |||
204 | /*
|
||
205 | * (non-Javadoc)
|
||
206 | * @see com.iver.andami.ui.mdiManager.IWindowListener#windowClosed()
|
||
207 | */
|
||
208 | public void windowClosed() { |
||
209 | // Masks possible extra exceptions
|
||
210 | if (panelGroup != null) { |
||
211 | if (!panelGroup.isAccepted()) {
|
||
212 | panelGroup.cancel(); |
||
213 | } |
||
214 | } |
||
215 | } |
||
216 | |||
217 | /*
|
||
218 | * (non-Javadoc)
|
||
219 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#accept()
|
||
220 | */
|
||
221 | public void accept() { |
||
222 | panelGroup.accept(); |
||
223 | } |
||
224 | |||
225 | /*
|
||
226 | * (non-Javadoc)
|
||
227 | 17026 | vcaballero | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#addPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel)
|
228 | 15734 | vcaballero | */
|
229 | 17543 | jmvivo | public void addPanel(IPanel panel) throws BaseException { |
230 | 15734 | vcaballero | panelGroup.addPanel(panel); |
231 | } |
||
232 | |||
233 | /*
|
||
234 | * (non-Javadoc)
|
||
235 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#apply()
|
||
236 | */
|
||
237 | public void apply() { |
||
238 | panelGroup.apply(); |
||
239 | } |
||
240 | |||
241 | /*
|
||
242 | * (non-Javadoc)
|
||
243 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#cancel()
|
||
244 | */
|
||
245 | public void cancel() { |
||
246 | panelGroup.cancel(); |
||
247 | } |
||
248 | |||
249 | /*
|
||
250 | * (non-Javadoc)
|
||
251 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#getActivePanel()
|
||
252 | */
|
||
253 | public IPanel getActivePanel() {
|
||
254 | return panelGroup.getActivePanel();
|
||
255 | } |
||
256 | |||
257 | /*
|
||
258 | * (non-Javadoc)
|
||
259 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#getProperties()
|
||
260 | */
|
||
261 | public Hashtable getProperties() { |
||
262 | return panelGroup.getProperties();
|
||
263 | } |
||
264 | |||
265 | /*
|
||
266 | * (non-Javadoc)
|
||
267 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#getReference()
|
||
268 | */
|
||
269 | public Object getReference() { |
||
270 | return panelGroup.getReference();
|
||
271 | } |
||
272 | 17743 | vcaballero | |
273 | /*
|
||
274 | * (non-Javadoc)
|
||
275 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#updateReference(java.lang.Object)
|
||
276 | */
|
||
277 | public void updateReference(Object reference) { |
||
278 | panelGroup.updateReference(reference); |
||
279 | } |
||
280 | 15734 | vcaballero | |
281 | /*
|
||
282 | * (non-Javadoc)
|
||
283 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#isAccepted()
|
||
284 | */
|
||
285 | public boolean isAccepted() { |
||
286 | return panelGroup.isAccepted();
|
||
287 | } |
||
288 | |||
289 | /*
|
||
290 | * (non-Javadoc)
|
||
291 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#loadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader)
|
||
292 | */
|
||
293 | 17026 | vcaballero | public void loadPanels(IPanelGroupLoader loader) throws ListCouldntAddPanelException, EmptyPanelGroupException, EmptyPanelGroupGUIException { |
294 | try {
|
||
295 | panelGroup.loadPanels(loader); |
||
296 | 17743 | vcaballero | |
297 | if (panelGroup.getPanelInGUICount() == 0) |
||
298 | close(); |
||
299 | 17026 | vcaballero | } |
300 | catch (BaseException be) {
|
||
301 | 17901 | vcaballero | be.setTranslator(new Messages());
|
302 | |||
303 | JOptionPane.showMessageDialog(this, be.getLocalizedMessageStack()); |
||
304 | |||
305 | 17743 | vcaballero | // Don't show the dialog if there is no panels in the GUI
|
306 | if (panelGroup.getPanelInGUICount() == 0) |
||
307 | close(); |
||
308 | 17026 | vcaballero | } |
309 | catch (Exception e) { |
||
310 | 17743 | vcaballero | NotificationManager.showMessageError(e.getMessage(), e); |
311 | |||
312 | // Don't show the dialog if there is no panels in the GUI
|
||
313 | if (panelGroup.getPanelInGUICount() == 0) |
||
314 | close(); |
||
315 | 17026 | vcaballero | } |
316 | 15734 | vcaballero | } |
317 | |||
318 | /*
|
||
319 | * (non-Javadoc)
|
||
320 | 17026 | vcaballero | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#removePanel(org.gvsig.gui.beans.panelGroup.panels.IPanel)
|
321 | 15734 | vcaballero | */
|
322 | 17026 | vcaballero | public void removePanel(IPanel panel) { |
323 | 15734 | vcaballero | panelGroup.removePanel(panel); |
324 | } |
||
325 | 16231 | vcaballero | |
326 | /*
|
||
327 | * (non-Javadoc)
|
||
328 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#isPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel)
|
||
329 | */
|
||
330 | public boolean isPanelInGUI(IPanel panel) { |
||
331 | return panelGroup.isPanelInGUI(panel);
|
||
332 | } |
||
333 | |||
334 | /*
|
||
335 | * (non-Javadoc)
|
||
336 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#setPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel, boolean)
|
||
337 | */
|
||
338 | public void setPanelInGUI(IPanel panel, boolean b) { |
||
339 | panelGroup.setPanelInGUI(panel, b); |
||
340 | } |
||
341 | 16692 | vcaballero | |
342 | /*
|
||
343 | * (non-Javadoc)
|
||
344 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#getPanelCount()
|
||
345 | */
|
||
346 | public int getPanelCount() { |
||
347 | return panelGroup.getPanelCount();
|
||
348 | } |
||
349 | |||
350 | /*
|
||
351 | * (non-Javadoc)
|
||
352 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#getPanelInGUICount()
|
||
353 | */
|
||
354 | public int getPanelInGUICount() { |
||
355 | return panelGroup.getPanelInGUICount();
|
||
356 | } |
||
357 | 17026 | vcaballero | |
358 | /*
|
||
359 | * (non-Javadoc)
|
||
360 | * @see javax.swing.JComponent#setPreferredSize(java.awt.Dimension)
|
||
361 | */
|
||
362 | public void setPreferredSize(Dimension preferredSize) { |
||
363 | super.setPreferredSize(preferredSize);
|
||
364 | |||
365 | windowInfo.setWidth(preferredSize.width); |
||
366 | windowInfo.setHeight(preferredSize.height); |
||
367 | } |
||
368 | 17543 | jmvivo | |
369 | /*
|
||
370 | * (non-Javadoc)
|
||
371 | * @see org.gvsig.gui.beans.panelGroup.IPanelGroup#setParentPanelGroup(org.gvsig.gui.beans.panelGroup.IPanelGroup)
|
||
372 | */
|
||
373 | public void setParentPanelGroup(IPanelGroup parent) { |
||
374 | 17743 | vcaballero | panelGroup.setParentPanelGroup(parent); |
375 | 17543 | jmvivo | |
376 | // this.addComponentListener(new ComponentAdapter())
|
||
377 | } |
||
378 | |||
379 | ///// BEGIN: Buttons Enable/Disable functionality /////
|
||
380 | |||
381 | /*
|
||
382 | * (non-Javadoc)
|
||
383 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledAcceptButton()
|
||
384 | */
|
||
385 | public boolean isEnabledAcceptButton() { |
||
386 | return getButtonsPanel().getButton(ButtonsPanel.BUTTON_ACCEPT).isEnabled();
|
||
387 | } |
||
388 | |||
389 | /*
|
||
390 | * (non-Javadoc)
|
||
391 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledApplyButton()
|
||
392 | */
|
||
393 | public boolean isEnabledApplyButton() { |
||
394 | return getButtonsPanel().getButton(ButtonsPanel.BUTTON_APPLY).isEnabled();
|
||
395 | } |
||
396 | |||
397 | /*
|
||
398 | * (non-Javadoc)
|
||
399 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledCancelButton()
|
||
400 | */
|
||
401 | public boolean isEnabledCancelButton() { |
||
402 | return getButtonsPanel().getButton(ButtonsPanel.BUTTON_CANCEL).isEnabled();
|
||
403 | } |
||
404 | |||
405 | /*
|
||
406 | * (non-Javadoc)
|
||
407 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledCloseButton()
|
||
408 | */
|
||
409 | public boolean isEnabledCloseButton() { |
||
410 | /* Unimplemented */
|
||
411 | return false; |
||
412 | } |
||
413 | |||
414 | /*
|
||
415 | * (non-Javadoc)
|
||
416 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledExitButton()
|
||
417 | */
|
||
418 | public boolean isEnabledExitButton() { |
||
419 | /* Unimplemented */
|
||
420 | return false; |
||
421 | } |
||
422 | |||
423 | /*
|
||
424 | * (non-Javadoc)
|
||
425 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledHideDetailsButton()
|
||
426 | */
|
||
427 | public boolean isEnabledHideDetailsButton() { |
||
428 | /* Unimplemented */
|
||
429 | return false; |
||
430 | } |
||
431 | |||
432 | /*
|
||
433 | * (non-Javadoc)
|
||
434 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledNoButton()
|
||
435 | */
|
||
436 | public boolean isEnabledNoButton() { |
||
437 | /* Unimplemented */
|
||
438 | return false; |
||
439 | } |
||
440 | |||
441 | /*
|
||
442 | * (non-Javadoc)
|
||
443 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledPauseButton()
|
||
444 | */
|
||
445 | public boolean isEnabledPauseButton() { |
||
446 | /* Unimplemented */
|
||
447 | return false; |
||
448 | } |
||
449 | |||
450 | /*
|
||
451 | * (non-Javadoc)
|
||
452 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledRestartButton()
|
||
453 | */
|
||
454 | public boolean isEnabledRestartButton() { |
||
455 | /* Unimplemented */
|
||
456 | return false; |
||
457 | } |
||
458 | |||
459 | /*
|
||
460 | * (non-Javadoc)
|
||
461 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledSaveButton()
|
||
462 | */
|
||
463 | public boolean isEnabledSaveButton() { |
||
464 | /* Unimplemented */
|
||
465 | return false; |
||
466 | } |
||
467 | |||
468 | /*
|
||
469 | * (non-Javadoc)
|
||
470 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledSeeDetailsButton()
|
||
471 | */
|
||
472 | public boolean isEnabledSeeDetailsButton() { |
||
473 | /* Unimplemented */
|
||
474 | return false; |
||
475 | } |
||
476 | |||
477 | /*
|
||
478 | * (non-Javadoc)
|
||
479 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#isEnabledYesButton()
|
||
480 | */
|
||
481 | public boolean isEnabledYesButton() { |
||
482 | /* Unimplemented */
|
||
483 | return false; |
||
484 | } |
||
485 | |||
486 | /*
|
||
487 | * (non-Javadoc)
|
||
488 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledAcceptButton(boolean)
|
||
489 | */
|
||
490 | public void setEnabledAcceptButton(boolean b) { |
||
491 | getButtonsPanel().getButton(ButtonsPanel.BUTTON_ACCEPT).setEnabled(b); |
||
492 | } |
||
493 | |||
494 | /*
|
||
495 | * (non-Javadoc)
|
||
496 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledApplyButton(boolean)
|
||
497 | */
|
||
498 | public void setEnabledApplyButton(boolean b) { |
||
499 | getButtonsPanel().getButton(ButtonsPanel.BUTTON_APPLY).setEnabled(b); |
||
500 | } |
||
501 | |||
502 | /*
|
||
503 | * (non-Javadoc)
|
||
504 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledCancelButton(boolean)
|
||
505 | */
|
||
506 | public void setEnabledCancelButton(boolean b) { |
||
507 | getButtonsPanel().getButton(ButtonsPanel.BUTTON_CANCEL).setEnabled(b); |
||
508 | } |
||
509 | |||
510 | /*
|
||
511 | * (non-Javadoc)
|
||
512 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledCloseButton(boolean)
|
||
513 | */
|
||
514 | public void setEnabledCloseButton(boolean b) { |
||
515 | /* Unimplemented */
|
||
516 | } |
||
517 | |||
518 | /*
|
||
519 | * (non-Javadoc)
|
||
520 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledExitButton(boolean)
|
||
521 | */
|
||
522 | public void setEnabledExitButton(boolean b) { |
||
523 | /* Unimplemented */
|
||
524 | } |
||
525 | |||
526 | /*
|
||
527 | * (non-Javadoc)
|
||
528 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledHideDetailsButton(boolean)
|
||
529 | */
|
||
530 | public void setEnabledHideDetailsButton(boolean b) { |
||
531 | /* Unimplemented */
|
||
532 | } |
||
533 | |||
534 | /*
|
||
535 | * (non-Javadoc)
|
||
536 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledNoButton(boolean)
|
||
537 | */
|
||
538 | public void setEnabledNoButton(boolean b) { |
||
539 | /* Unimplemented */
|
||
540 | } |
||
541 | |||
542 | /*
|
||
543 | * (non-Javadoc)
|
||
544 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledPauseButton(boolean)
|
||
545 | */
|
||
546 | public void setEnabledPauseButton(boolean b) { |
||
547 | /* Unimplemented */
|
||
548 | } |
||
549 | |||
550 | /*
|
||
551 | * (non-Javadoc)
|
||
552 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledRestartButton(boolean)
|
||
553 | */
|
||
554 | public void setEnabledRestartButton(boolean b) { |
||
555 | /* Unimplemented */
|
||
556 | } |
||
557 | |||
558 | /*
|
||
559 | * (non-Javadoc)
|
||
560 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledSaveButton(boolean)
|
||
561 | */
|
||
562 | public void setEnabledSaveButton(boolean b) { |
||
563 | /* Unimplemented */
|
||
564 | } |
||
565 | |||
566 | /*
|
||
567 | * (non-Javadoc)
|
||
568 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledSeeDetailsButton(boolean)
|
||
569 | */
|
||
570 | public void setEnabledSeeDetailsButton(boolean b) { |
||
571 | /* Unimplemented */
|
||
572 | } |
||
573 | |||
574 | /*
|
||
575 | * (non-Javadoc)
|
||
576 | * @see org.gvsig.gui.beans.buttonspanel.IButtonsPanel#setEnabledYesButton(boolean)
|
||
577 | */
|
||
578 | public void setEnabledYesButton(boolean b) { |
||
579 | /* Unimplemented */
|
||
580 | } |
||
581 | 24986 | jcampos | |
582 | public Object getWindowProfile() { |
||
583 | 25012 | jcampos | return WindowInfo.PROPERTIES_PROFILE;
|
584 | 24986 | jcampos | } |
585 | 17543 | jmvivo | |
586 | ///// END: Buttons Enable/Disable functionality /////
|
||
587 | 15734 | vcaballero | } |