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