svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / plugins / config / generate / ToolBar.java @ 43328
History | View | Annotate | Download (23.2 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 |
/*
|
25 |
* This class was automatically generated with
|
26 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
27 |
* Schema.
|
28 |
* $Id: ToolBar.java 29593 2009-06-29 15:54:31Z jpiera $
|
29 |
*/
|
30 |
|
31 |
package org.gvsig.andami.plugins.config.generate; |
32 |
|
33 |
//---------------------------------/
|
34 |
//- Imported classes and packages -/
|
35 |
//---------------------------------/
|
36 |
|
37 |
import java.io.IOException; |
38 |
import java.io.Reader; |
39 |
import java.io.Serializable; |
40 |
import java.io.Writer; |
41 |
import java.util.Enumeration; |
42 |
import java.util.Vector; |
43 |
import org.exolab.castor.xml.MarshalException; |
44 |
import org.exolab.castor.xml.Marshaller; |
45 |
import org.exolab.castor.xml.Unmarshaller; |
46 |
import org.exolab.castor.xml.ValidationException; |
47 |
import org.xml.sax.ContentHandler; |
48 |
|
49 |
/**
|
50 |
* Class ToolBar.
|
51 |
*
|
52 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
|
53 |
*/
|
54 |
public class ToolBar implements java.io.Serializable { |
55 |
|
56 |
|
57 |
//--------------------------/
|
58 |
//- Class/Member Variables -/
|
59 |
//--------------------------/
|
60 |
|
61 |
/**
|
62 |
* Field _name
|
63 |
*/
|
64 |
private java.lang.String _name;
|
65 |
|
66 |
private java.lang.String _description;
|
67 |
|
68 |
/**
|
69 |
* Field _position
|
70 |
*/
|
71 |
private int _position = 0; |
72 |
|
73 |
/**
|
74 |
* keeps track of state for field: _position
|
75 |
*/
|
76 |
private boolean _has_position; |
77 |
|
78 |
/**
|
79 |
* Field _isVisible
|
80 |
*/
|
81 |
private boolean _isVisible = true; |
82 |
|
83 |
/**
|
84 |
* keeps track of state for field: _isVisible
|
85 |
*/
|
86 |
private boolean _has_isVisible; |
87 |
|
88 |
/**
|
89 |
* Field _actionToolList
|
90 |
*/
|
91 |
private java.util.Vector _actionToolList;
|
92 |
|
93 |
/**
|
94 |
* Field _selectableToolList
|
95 |
*/
|
96 |
private java.util.Vector _selectableToolList;
|
97 |
|
98 |
/**
|
99 |
* Field _comboButtonList
|
100 |
*/
|
101 |
private java.util.Vector _comboButtonList;
|
102 |
|
103 |
/**
|
104 |
* Field _comboScaleList
|
105 |
*/
|
106 |
private java.util.Vector _comboScaleList;
|
107 |
|
108 |
|
109 |
//----------------/
|
110 |
//- Constructors -/
|
111 |
//----------------/
|
112 |
|
113 |
public ToolBar() {
|
114 |
super();
|
115 |
_actionToolList = new Vector(); |
116 |
_selectableToolList = new Vector(); |
117 |
_comboButtonList = new Vector(); |
118 |
_comboScaleList = new Vector(); |
119 |
} //-- com.iver.andami.plugins.config.generate.ToolBar()
|
120 |
|
121 |
|
122 |
//-----------/
|
123 |
//- Methods -/
|
124 |
//-----------/
|
125 |
|
126 |
/**
|
127 |
* Method addActionTool
|
128 |
*
|
129 |
* @param vActionTool
|
130 |
*/
|
131 |
public void addActionTool(org.gvsig.andami.plugins.config.generate.ActionTool vActionTool) |
132 |
throws java.lang.IndexOutOfBoundsException
|
133 |
{ |
134 |
_actionToolList.addElement(vActionTool); |
135 |
} //-- void addActionTool(com.iver.andami.plugins.config.generate.ActionTool)
|
136 |
|
137 |
/**
|
138 |
* Method addActionTool
|
139 |
*
|
140 |
* @param index
|
141 |
* @param vActionTool
|
142 |
*/
|
143 |
public void addActionTool(int index, org.gvsig.andami.plugins.config.generate.ActionTool vActionTool) |
144 |
throws java.lang.IndexOutOfBoundsException
|
145 |
{ |
146 |
_actionToolList.insertElementAt(vActionTool, index); |
147 |
} //-- void addActionTool(int, com.iver.andami.plugins.config.generate.ActionTool)
|
148 |
|
149 |
/**
|
150 |
* Method addComboButton
|
151 |
*
|
152 |
* @param vComboButton
|
153 |
*/
|
154 |
public void addComboButton(org.gvsig.andami.plugins.config.generate.ComboButton vComboButton) |
155 |
throws java.lang.IndexOutOfBoundsException
|
156 |
{ |
157 |
_comboButtonList.addElement(vComboButton); |
158 |
} //-- void addComboButton(com.iver.andami.plugins.config.generate.ComboButton)
|
159 |
|
160 |
/**
|
161 |
* Method addComboButton
|
162 |
*
|
163 |
* @param index
|
164 |
* @param vComboButton
|
165 |
*/
|
166 |
public void addComboButton(int index, org.gvsig.andami.plugins.config.generate.ComboButton vComboButton) |
167 |
throws java.lang.IndexOutOfBoundsException
|
168 |
{ |
169 |
_comboButtonList.insertElementAt(vComboButton, index); |
170 |
} //-- void addComboButton(int, com.iver.andami.plugins.config.generate.ComboButton)
|
171 |
|
172 |
/**
|
173 |
* Method addComboScale
|
174 |
*
|
175 |
* @param vComboScale
|
176 |
*/
|
177 |
public void addComboScale(org.gvsig.andami.plugins.config.generate.ComboScale vComboScale) |
178 |
throws java.lang.IndexOutOfBoundsException
|
179 |
{ |
180 |
_comboScaleList.addElement(vComboScale); |
181 |
} //-- void addComboScale(com.iver.andami.plugins.config.generate.ComboScale)
|
182 |
|
183 |
/**
|
184 |
* Method addComboScale
|
185 |
*
|
186 |
* @param index
|
187 |
* @param vComboScale
|
188 |
*/
|
189 |
public void addComboScale(int index, org.gvsig.andami.plugins.config.generate.ComboScale vComboScale) |
190 |
throws java.lang.IndexOutOfBoundsException
|
191 |
{ |
192 |
_comboScaleList.insertElementAt(vComboScale, index); |
193 |
} //-- void addComboScale(int, com.iver.andami.plugins.config.generate.ComboScale)
|
194 |
|
195 |
/**
|
196 |
* Method addSelectableTool
|
197 |
*
|
198 |
* @param vSelectableTool
|
199 |
*/
|
200 |
public void addSelectableTool(org.gvsig.andami.plugins.config.generate.SelectableTool vSelectableTool) |
201 |
throws java.lang.IndexOutOfBoundsException
|
202 |
{ |
203 |
_selectableToolList.addElement(vSelectableTool); |
204 |
} //-- void addSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool)
|
205 |
|
206 |
/**
|
207 |
* Method addSelectableTool
|
208 |
*
|
209 |
* @param index
|
210 |
* @param vSelectableTool
|
211 |
*/
|
212 |
public void addSelectableTool(int index, org.gvsig.andami.plugins.config.generate.SelectableTool vSelectableTool) |
213 |
throws java.lang.IndexOutOfBoundsException
|
214 |
{ |
215 |
_selectableToolList.insertElementAt(vSelectableTool, index); |
216 |
} //-- void addSelectableTool(int, com.iver.andami.plugins.config.generate.SelectableTool)
|
217 |
|
218 |
/**
|
219 |
* Method deleteIsVisible
|
220 |
*/
|
221 |
public void deleteIsVisible() |
222 |
{ |
223 |
this._has_isVisible= false; |
224 |
} //-- void deleteIsVisible()
|
225 |
|
226 |
/**
|
227 |
* Method deletePosition
|
228 |
*/
|
229 |
public void deletePosition() |
230 |
{ |
231 |
this._has_position= false; |
232 |
} //-- void deletePosition()
|
233 |
|
234 |
/**
|
235 |
* Method enumerateActionTool
|
236 |
*/
|
237 |
public java.util.Enumeration enumerateActionTool()
|
238 |
{ |
239 |
return _actionToolList.elements();
|
240 |
} //-- java.util.Enumeration enumerateActionTool()
|
241 |
|
242 |
/**
|
243 |
* Method enumerateComboButton
|
244 |
*/
|
245 |
public java.util.Enumeration enumerateComboButton()
|
246 |
{ |
247 |
return _comboButtonList.elements();
|
248 |
} //-- java.util.Enumeration enumerateComboButton()
|
249 |
|
250 |
/**
|
251 |
* Method enumerateComboScale
|
252 |
*/
|
253 |
public java.util.Enumeration enumerateComboScale()
|
254 |
{ |
255 |
return _comboScaleList.elements();
|
256 |
} //-- java.util.Enumeration enumerateComboScale()
|
257 |
|
258 |
/**
|
259 |
* Method enumerateSelectableTool
|
260 |
*/
|
261 |
public java.util.Enumeration enumerateSelectableTool()
|
262 |
{ |
263 |
return _selectableToolList.elements();
|
264 |
} //-- java.util.Enumeration enumerateSelectableTool()
|
265 |
|
266 |
/**
|
267 |
* Method getActionTool
|
268 |
*
|
269 |
* @param index
|
270 |
*/
|
271 |
public org.gvsig.andami.plugins.config.generate.ActionTool getActionTool(int index) |
272 |
throws java.lang.IndexOutOfBoundsException
|
273 |
{ |
274 |
//-- check bounds for index
|
275 |
if ((index < 0) || (index > _actionToolList.size())) { |
276 |
throw new IndexOutOfBoundsException(); |
277 |
} |
278 |
|
279 |
return (org.gvsig.andami.plugins.config.generate.ActionTool) _actionToolList.elementAt(index);
|
280 |
} //-- com.iver.andami.plugins.config.generate.ActionTool getActionTool(int)
|
281 |
|
282 |
/**
|
283 |
* Method getActionTool
|
284 |
*/
|
285 |
public org.gvsig.andami.plugins.config.generate.ActionTool[] getActionTool() |
286 |
{ |
287 |
int size = _actionToolList.size();
|
288 |
org.gvsig.andami.plugins.config.generate.ActionTool[] mArray = new org.gvsig.andami.plugins.config.generate.ActionTool[size]; |
289 |
for (int index = 0; index < size; index++) { |
290 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.ActionTool) _actionToolList.elementAt(index); |
291 |
} |
292 |
return mArray;
|
293 |
} //-- com.iver.andami.plugins.config.generate.ActionTool[] getActionTool()
|
294 |
|
295 |
/**
|
296 |
* Method getActionToolCount
|
297 |
*/
|
298 |
public int getActionToolCount() |
299 |
{ |
300 |
return _actionToolList.size();
|
301 |
} //-- int getActionToolCount()
|
302 |
|
303 |
/**
|
304 |
* Method getComboButton
|
305 |
*
|
306 |
* @param index
|
307 |
*/
|
308 |
public org.gvsig.andami.plugins.config.generate.ComboButton getComboButton(int index) |
309 |
throws java.lang.IndexOutOfBoundsException
|
310 |
{ |
311 |
//-- check bounds for index
|
312 |
if ((index < 0) || (index > _comboButtonList.size())) { |
313 |
throw new IndexOutOfBoundsException(); |
314 |
} |
315 |
|
316 |
return (org.gvsig.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index);
|
317 |
} //-- com.iver.andami.plugins.config.generate.ComboButton getComboButton(int)
|
318 |
|
319 |
/**
|
320 |
* Method getComboButton
|
321 |
*/
|
322 |
public org.gvsig.andami.plugins.config.generate.ComboButton[] getComboButton() |
323 |
{ |
324 |
int size = _comboButtonList.size();
|
325 |
org.gvsig.andami.plugins.config.generate.ComboButton[] mArray = new org.gvsig.andami.plugins.config.generate.ComboButton[size]; |
326 |
for (int index = 0; index < size; index++) { |
327 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index); |
328 |
} |
329 |
return mArray;
|
330 |
} //-- com.iver.andami.plugins.config.generate.ComboButton[] getComboButton()
|
331 |
|
332 |
/**
|
333 |
* Method getComboButtonCount
|
334 |
*/
|
335 |
public int getComboButtonCount() |
336 |
{ |
337 |
return _comboButtonList.size();
|
338 |
} //-- int getComboButtonCount()
|
339 |
|
340 |
/**
|
341 |
* Method getComboScale
|
342 |
*
|
343 |
* @param index
|
344 |
*/
|
345 |
public org.gvsig.andami.plugins.config.generate.ComboScale getComboScale(int index) |
346 |
throws java.lang.IndexOutOfBoundsException
|
347 |
{ |
348 |
//-- check bounds for index
|
349 |
if ((index < 0) || (index > _comboScaleList.size())) { |
350 |
throw new IndexOutOfBoundsException(); |
351 |
} |
352 |
|
353 |
return (org.gvsig.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index);
|
354 |
} //-- com.iver.andami.plugins.config.generate.ComboScale getComboScale(int)
|
355 |
|
356 |
/**
|
357 |
* Method getComboScale
|
358 |
*/
|
359 |
public org.gvsig.andami.plugins.config.generate.ComboScale[] getComboScale() |
360 |
{ |
361 |
int size = _comboScaleList.size();
|
362 |
org.gvsig.andami.plugins.config.generate.ComboScale[] mArray = new org.gvsig.andami.plugins.config.generate.ComboScale[size]; |
363 |
for (int index = 0; index < size; index++) { |
364 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index); |
365 |
} |
366 |
return mArray;
|
367 |
} //-- com.iver.andami.plugins.config.generate.ComboScale[] getComboScale()
|
368 |
|
369 |
/**
|
370 |
* Method getComboScaleCount
|
371 |
*/
|
372 |
public int getComboScaleCount() |
373 |
{ |
374 |
return _comboScaleList.size();
|
375 |
} //-- int getComboScaleCount()
|
376 |
|
377 |
/**
|
378 |
* Returns the value of field 'isVisible'.
|
379 |
*
|
380 |
* @return the value of field 'isVisible'.
|
381 |
*/
|
382 |
public boolean getIsVisible() |
383 |
{ |
384 |
return this._isVisible; |
385 |
} //-- boolean getIsVisible()
|
386 |
|
387 |
/**
|
388 |
* Returns the value of field 'name'.
|
389 |
*
|
390 |
* @return the value of field 'name'.
|
391 |
*/
|
392 |
public java.lang.String getName()
|
393 |
{ |
394 |
return this._name; |
395 |
} //-- java.lang.String getName()
|
396 |
|
397 |
/**
|
398 |
* Returns the value of field 'name'.
|
399 |
*
|
400 |
* @return the value of field 'name'.
|
401 |
*/
|
402 |
public java.lang.String getDescription()
|
403 |
{ |
404 |
return this._description; |
405 |
} //-- java.lang.String getName()
|
406 |
|
407 |
/**
|
408 |
* Returns the value of field 'position'.
|
409 |
*
|
410 |
* @return the value of field 'position'.
|
411 |
*/
|
412 |
public int getPosition() |
413 |
{ |
414 |
return this._position; |
415 |
} //-- int getPosition()
|
416 |
|
417 |
/**
|
418 |
* Method getSelectableTool
|
419 |
*
|
420 |
* @param index
|
421 |
*/
|
422 |
public org.gvsig.andami.plugins.config.generate.SelectableTool getSelectableTool(int index) |
423 |
throws java.lang.IndexOutOfBoundsException
|
424 |
{ |
425 |
//-- check bounds for index
|
426 |
if ((index < 0) || (index > _selectableToolList.size())) { |
427 |
throw new IndexOutOfBoundsException(); |
428 |
} |
429 |
|
430 |
return (org.gvsig.andami.plugins.config.generate.SelectableTool) _selectableToolList.elementAt(index);
|
431 |
} //-- com.iver.andami.plugins.config.generate.SelectableTool getSelectableTool(int)
|
432 |
|
433 |
/**
|
434 |
* Method getSelectableTool
|
435 |
*/
|
436 |
public org.gvsig.andami.plugins.config.generate.SelectableTool[] getSelectableTool() |
437 |
{ |
438 |
int size = _selectableToolList.size();
|
439 |
org.gvsig.andami.plugins.config.generate.SelectableTool[] mArray = new org.gvsig.andami.plugins.config.generate.SelectableTool[size]; |
440 |
for (int index = 0; index < size; index++) { |
441 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.SelectableTool) _selectableToolList.elementAt(index); |
442 |
} |
443 |
return mArray;
|
444 |
} //-- com.iver.andami.plugins.config.generate.SelectableTool[] getSelectableTool()
|
445 |
|
446 |
/**
|
447 |
* Method getSelectableToolCount
|
448 |
*/
|
449 |
public int getSelectableToolCount() |
450 |
{ |
451 |
return _selectableToolList.size();
|
452 |
} //-- int getSelectableToolCount()
|
453 |
|
454 |
/**
|
455 |
* Method hasIsVisible
|
456 |
*/
|
457 |
public boolean hasIsVisible() |
458 |
{ |
459 |
return this._has_isVisible; |
460 |
} //-- boolean hasIsVisible()
|
461 |
|
462 |
/**
|
463 |
* Method hasPosition
|
464 |
*/
|
465 |
public boolean hasPosition() |
466 |
{ |
467 |
return this._has_position; |
468 |
} //-- boolean hasPosition()
|
469 |
|
470 |
/**
|
471 |
* Method isValid
|
472 |
*/
|
473 |
public boolean isValid() |
474 |
{ |
475 |
try {
|
476 |
validate(); |
477 |
} |
478 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
479 |
return false; |
480 |
} |
481 |
return true; |
482 |
} //-- boolean isValid()
|
483 |
|
484 |
/**
|
485 |
* Method marshal
|
486 |
*
|
487 |
* @param out
|
488 |
*/
|
489 |
public void marshal(java.io.Writer out) |
490 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
491 |
{ |
492 |
|
493 |
Marshaller.marshal(this, out);
|
494 |
} //-- void marshal(java.io.Writer)
|
495 |
|
496 |
/**
|
497 |
* Method marshal
|
498 |
*
|
499 |
* @param handler
|
500 |
*/
|
501 |
public void marshal(org.xml.sax.ContentHandler handler) |
502 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
503 |
{ |
504 |
|
505 |
Marshaller.marshal(this, handler);
|
506 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
507 |
|
508 |
/**
|
509 |
* Method removeActionTool
|
510 |
*
|
511 |
* @param index
|
512 |
*/
|
513 |
public org.gvsig.andami.plugins.config.generate.ActionTool removeActionTool(int index) |
514 |
{ |
515 |
java.lang.Object obj = _actionToolList.elementAt(index); |
516 |
_actionToolList.removeElementAt(index); |
517 |
return (org.gvsig.andami.plugins.config.generate.ActionTool) obj;
|
518 |
} //-- com.iver.andami.plugins.config.generate.ActionTool removeActionTool(int)
|
519 |
|
520 |
/**
|
521 |
* Method removeAllActionTool
|
522 |
*/
|
523 |
public void removeAllActionTool() |
524 |
{ |
525 |
_actionToolList.removeAllElements(); |
526 |
} //-- void removeAllActionTool()
|
527 |
|
528 |
/**
|
529 |
* Method removeAllComboButton
|
530 |
*/
|
531 |
public void removeAllComboButton() |
532 |
{ |
533 |
_comboButtonList.removeAllElements(); |
534 |
} //-- void removeAllComboButton()
|
535 |
|
536 |
/**
|
537 |
* Method removeAllComboScale
|
538 |
*/
|
539 |
public void removeAllComboScale() |
540 |
{ |
541 |
_comboScaleList.removeAllElements(); |
542 |
} //-- void removeAllComboScale()
|
543 |
|
544 |
/**
|
545 |
* Method removeAllSelectableTool
|
546 |
*/
|
547 |
public void removeAllSelectableTool() |
548 |
{ |
549 |
_selectableToolList.removeAllElements(); |
550 |
} //-- void removeAllSelectableTool()
|
551 |
|
552 |
/**
|
553 |
* Method removeComboButton
|
554 |
*
|
555 |
* @param index
|
556 |
*/
|
557 |
public org.gvsig.andami.plugins.config.generate.ComboButton removeComboButton(int index) |
558 |
{ |
559 |
java.lang.Object obj = _comboButtonList.elementAt(index); |
560 |
_comboButtonList.removeElementAt(index); |
561 |
return (org.gvsig.andami.plugins.config.generate.ComboButton) obj;
|
562 |
} //-- com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int)
|
563 |
|
564 |
/**
|
565 |
* Method removeComboScale
|
566 |
*
|
567 |
* @param index
|
568 |
*/
|
569 |
public org.gvsig.andami.plugins.config.generate.ComboScale removeComboScale(int index) |
570 |
{ |
571 |
java.lang.Object obj = _comboScaleList.elementAt(index); |
572 |
_comboScaleList.removeElementAt(index); |
573 |
return (org.gvsig.andami.plugins.config.generate.ComboScale) obj;
|
574 |
} //-- com.iver.andami.plugins.config.generate.ComboScale removeComboScale(int)
|
575 |
|
576 |
/**
|
577 |
* Method removeSelectableTool
|
578 |
*
|
579 |
* @param index
|
580 |
*/
|
581 |
public org.gvsig.andami.plugins.config.generate.SelectableTool removeSelectableTool(int index) |
582 |
{ |
583 |
java.lang.Object obj = _selectableToolList.elementAt(index); |
584 |
_selectableToolList.removeElementAt(index); |
585 |
return (org.gvsig.andami.plugins.config.generate.SelectableTool) obj;
|
586 |
} //-- com.iver.andami.plugins.config.generate.SelectableTool removeSelectableTool(int)
|
587 |
|
588 |
/**
|
589 |
* Method setActionTool
|
590 |
*
|
591 |
* @param index
|
592 |
* @param vActionTool
|
593 |
*/
|
594 |
public void setActionTool(int index, org.gvsig.andami.plugins.config.generate.ActionTool vActionTool) |
595 |
throws java.lang.IndexOutOfBoundsException
|
596 |
{ |
597 |
//-- check bounds for index
|
598 |
if ((index < 0) || (index > _actionToolList.size())) { |
599 |
throw new IndexOutOfBoundsException(); |
600 |
} |
601 |
_actionToolList.setElementAt(vActionTool, index); |
602 |
} //-- void setActionTool(int, com.iver.andami.plugins.config.generate.ActionTool)
|
603 |
|
604 |
/**
|
605 |
* Method setActionTool
|
606 |
*
|
607 |
* @param actionToolArray
|
608 |
*/
|
609 |
public void setActionTool(org.gvsig.andami.plugins.config.generate.ActionTool[] actionToolArray) |
610 |
{ |
611 |
//-- copy array
|
612 |
_actionToolList.removeAllElements(); |
613 |
for (int i = 0; i < actionToolArray.length; i++) { |
614 |
_actionToolList.addElement(actionToolArray[i]); |
615 |
} |
616 |
} //-- void setActionTool(com.iver.andami.plugins.config.generate.ActionTool)
|
617 |
|
618 |
/**
|
619 |
* Method setComboButton
|
620 |
*
|
621 |
* @param index
|
622 |
* @param vComboButton
|
623 |
*/
|
624 |
public void setComboButton(int index, org.gvsig.andami.plugins.config.generate.ComboButton vComboButton) |
625 |
throws java.lang.IndexOutOfBoundsException
|
626 |
{ |
627 |
//-- check bounds for index
|
628 |
if ((index < 0) || (index > _comboButtonList.size())) { |
629 |
throw new IndexOutOfBoundsException(); |
630 |
} |
631 |
_comboButtonList.setElementAt(vComboButton, index); |
632 |
} //-- void setComboButton(int, com.iver.andami.plugins.config.generate.ComboButton)
|
633 |
|
634 |
/**
|
635 |
* Method setComboButton
|
636 |
*
|
637 |
* @param comboButtonArray
|
638 |
*/
|
639 |
public void setComboButton(org.gvsig.andami.plugins.config.generate.ComboButton[] comboButtonArray) |
640 |
{ |
641 |
//-- copy array
|
642 |
_comboButtonList.removeAllElements(); |
643 |
for (int i = 0; i < comboButtonArray.length; i++) { |
644 |
_comboButtonList.addElement(comboButtonArray[i]); |
645 |
} |
646 |
} //-- void setComboButton(com.iver.andami.plugins.config.generate.ComboButton)
|
647 |
|
648 |
/**
|
649 |
* Method setComboScale
|
650 |
*
|
651 |
* @param index
|
652 |
* @param vComboScale
|
653 |
*/
|
654 |
public void setComboScale(int index, org.gvsig.andami.plugins.config.generate.ComboScale vComboScale) |
655 |
throws java.lang.IndexOutOfBoundsException
|
656 |
{ |
657 |
//-- check bounds for index
|
658 |
if ((index < 0) || (index > _comboScaleList.size())) { |
659 |
throw new IndexOutOfBoundsException(); |
660 |
} |
661 |
_comboScaleList.setElementAt(vComboScale, index); |
662 |
} //-- void setComboScale(int, com.iver.andami.plugins.config.generate.ComboScale)
|
663 |
|
664 |
/**
|
665 |
* Method setComboScale
|
666 |
*
|
667 |
* @param comboScaleArray
|
668 |
*/
|
669 |
public void setComboScale(org.gvsig.andami.plugins.config.generate.ComboScale[] comboScaleArray) |
670 |
{ |
671 |
//-- copy array
|
672 |
_comboScaleList.removeAllElements(); |
673 |
for (int i = 0; i < comboScaleArray.length; i++) { |
674 |
_comboScaleList.addElement(comboScaleArray[i]); |
675 |
} |
676 |
} //-- void setComboScale(com.iver.andami.plugins.config.generate.ComboScale)
|
677 |
|
678 |
/**
|
679 |
* Sets the value of field 'isVisible'.
|
680 |
*
|
681 |
* @param isVisible the value of field 'isVisible'.
|
682 |
*/
|
683 |
public void setIsVisible(boolean isVisible) |
684 |
{ |
685 |
this._isVisible = isVisible;
|
686 |
this._has_isVisible = true; |
687 |
} //-- void setIsVisible(boolean)
|
688 |
|
689 |
/**
|
690 |
* Sets the value of field 'name'.
|
691 |
*
|
692 |
* @param name the value of field 'name'.
|
693 |
*/
|
694 |
public void setName(java.lang.String name) |
695 |
{ |
696 |
this._name = name;
|
697 |
} //-- void setName(java.lang.String)
|
698 |
|
699 |
/**
|
700 |
* Sets the value of field 'name'.
|
701 |
*
|
702 |
* @param name the value of field 'name'.
|
703 |
*/
|
704 |
public void setDescription(java.lang.String description) |
705 |
{ |
706 |
this._description = description;
|
707 |
} //-- void setName(java.lang.String)
|
708 |
|
709 |
/**
|
710 |
* Sets the value of field 'position'.
|
711 |
*
|
712 |
* @param position the value of field 'position'.
|
713 |
*/
|
714 |
public void setPosition(int position) |
715 |
{ |
716 |
this._position = position;
|
717 |
this._has_position = true; |
718 |
} //-- void setPosition(int)
|
719 |
|
720 |
/**
|
721 |
* Method setSelectableTool
|
722 |
*
|
723 |
* @param index
|
724 |
* @param vSelectableTool
|
725 |
*/
|
726 |
public void setSelectableTool(int index, org.gvsig.andami.plugins.config.generate.SelectableTool vSelectableTool) |
727 |
throws java.lang.IndexOutOfBoundsException
|
728 |
{ |
729 |
//-- check bounds for index
|
730 |
if ((index < 0) || (index > _selectableToolList.size())) { |
731 |
throw new IndexOutOfBoundsException(); |
732 |
} |
733 |
_selectableToolList.setElementAt(vSelectableTool, index); |
734 |
} //-- void setSelectableTool(int, com.iver.andami.plugins.config.generate.SelectableTool)
|
735 |
|
736 |
/**
|
737 |
* Method setSelectableTool
|
738 |
*
|
739 |
* @param selectableToolArray
|
740 |
*/
|
741 |
public void setSelectableTool(org.gvsig.andami.plugins.config.generate.SelectableTool[] selectableToolArray) |
742 |
{ |
743 |
//-- copy array
|
744 |
_selectableToolList.removeAllElements(); |
745 |
for (int i = 0; i < selectableToolArray.length; i++) { |
746 |
_selectableToolList.addElement(selectableToolArray[i]); |
747 |
} |
748 |
} //-- void setSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool)
|
749 |
|
750 |
/**
|
751 |
* Method unmarshal
|
752 |
*
|
753 |
* @param reader
|
754 |
*/
|
755 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
756 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
757 |
{ |
758 |
return (org.gvsig.andami.plugins.config.generate.ToolBar) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.ToolBar.class, reader);
|
759 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
760 |
|
761 |
/**
|
762 |
* Method validate
|
763 |
*/
|
764 |
public void validate() |
765 |
throws org.exolab.castor.xml.ValidationException
|
766 |
{ |
767 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
768 |
validator.validate(this);
|
769 |
} //-- void validate()
|
770 |
|
771 |
} |