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