Statistics
| Revision:

root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ToolBar.java @ 9956

History | View | Annotate | Download (25.7 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: ToolBar.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 ToolBar.
28
 * 
29
 * @version $Revision: 9956 $ $Date: 2007-01-29 12:50:30 +0100 (Mon, 29 Jan 2007) $
30
 */
31
public class ToolBar implements java.io.Serializable {
32

    
33

    
34
      //--------------------------/
35
     //- Class/Member Variables -/
36
    //--------------------------/
37

    
38
    /**
39
     * Field _name
40
     */
41
    private java.lang.String _name;
42

    
43
    /**
44
     * Field _position
45
     */
46
    private int _position = 50;
47

    
48
    /**
49
     * keeps track of state for field: _position
50
     */
51
    private boolean _has_position;
52

    
53
    /**
54
     * Field _isVisible
55
     */
56
    private boolean _isVisible = true;
57

    
58
    /**
59
     * keeps track of state for field: _isVisible
60
     */
61
    private boolean _has_isVisible;
62

    
63
    /**
64
     * Field _actionToolList
65
     */
66
    private java.util.Vector _actionToolList;
67

    
68
    /**
69
     * Field _selectableToolList
70
     */
71
    private java.util.Vector _selectableToolList;
72

    
73
    /**
74
     * Field _comboButtonList
75
     */
76
    private java.util.Vector _comboButtonList;
77

    
78
    /**
79
     * Field _comboScaleList
80
     */
81
    private java.util.Vector _comboScaleList;
82

    
83
    /**
84
     * Field _comboCoordsList
85
     */
86
    private java.util.Vector _comboCoordsList;
87

    
88

    
89
      //----------------/
90
     //- Constructors -/
91
    //----------------/
92

    
93
    public ToolBar() {
94
        super();
95
        _actionToolList = new Vector();
96
        _selectableToolList = new Vector();
97
        _comboButtonList = new Vector();
98
        _comboScaleList = new Vector();
99
        _comboCoordsList = new Vector();
100
    } //-- com.iver.andami.plugins.config.generate.ToolBar()
101

    
102

    
103
      //-----------/
104
     //- Methods -/
105
    //-----------/
106

    
107
    /**
108
     * Method addActionTool
109
     * 
110
     * @param vActionTool
111
     */
112
    public void addActionTool(com.iver.andami.plugins.config.generate.ActionTool vActionTool)
113
        throws java.lang.IndexOutOfBoundsException
114
    {
115
        _actionToolList.addElement(vActionTool);
116
    } //-- void addActionTool(com.iver.andami.plugins.config.generate.ActionTool) 
117

    
118
    /**
119
     * Method addActionTool
120
     * 
121
     * @param index
122
     * @param vActionTool
123
     */
124
    public void addActionTool(int index, com.iver.andami.plugins.config.generate.ActionTool vActionTool)
125
        throws java.lang.IndexOutOfBoundsException
126
    {
127
        _actionToolList.insertElementAt(vActionTool, index);
128
    } //-- void addActionTool(int, com.iver.andami.plugins.config.generate.ActionTool) 
129

    
130
    /**
131
     * Method addComboButton
132
     * 
133
     * @param vComboButton
134
     */
135
    public void addComboButton(com.iver.andami.plugins.config.generate.ComboButton vComboButton)
136
        throws java.lang.IndexOutOfBoundsException
137
    {
138
        _comboButtonList.addElement(vComboButton);
139
    } //-- void addComboButton(com.iver.andami.plugins.config.generate.ComboButton) 
140

    
141
    /**
142
     * Method addComboButton
143
     * 
144
     * @param index
145
     * @param vComboButton
146
     */
147
    public void addComboButton(int index, com.iver.andami.plugins.config.generate.ComboButton vComboButton)
148
        throws java.lang.IndexOutOfBoundsException
149
    {
150
        _comboButtonList.insertElementAt(vComboButton, index);
151
    } //-- void addComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) 
152

    
153
    /**
154
     * Method addComboCoords
155
     * 
156
     * @param vComboCoords
157
     */
158
    public void addComboCoords(com.iver.andami.plugins.config.generate.ComboCoords vComboCoords)
159
        throws java.lang.IndexOutOfBoundsException
160
    {
161
        _comboCoordsList.addElement(vComboCoords);
162
    } //-- void addComboCoords(com.iver.andami.plugins.config.generate.ComboCoords) 
163

    
164
    /**
165
     * Method addComboCoords
166
     * 
167
     * @param index
168
     * @param vComboCoords
169
     */
170
    public void addComboCoords(int index, com.iver.andami.plugins.config.generate.ComboCoords vComboCoords)
171
        throws java.lang.IndexOutOfBoundsException
172
    {
173
        _comboCoordsList.insertElementAt(vComboCoords, index);
174
    } //-- void addComboCoords(int, com.iver.andami.plugins.config.generate.ComboCoords) 
175

    
176
    /**
177
     * Method addComboScale
178
     * 
179
     * @param vComboScale
180
     */
181
    public void addComboScale(com.iver.andami.plugins.config.generate.ComboScale vComboScale)
182
        throws java.lang.IndexOutOfBoundsException
183
    {
184
        _comboScaleList.addElement(vComboScale);
185
    } //-- void addComboScale(com.iver.andami.plugins.config.generate.ComboScale) 
186

    
187
    /**
188
     * Method addComboScale
189
     * 
190
     * @param index
191
     * @param vComboScale
192
     */
193
    public void addComboScale(int index, com.iver.andami.plugins.config.generate.ComboScale vComboScale)
194
        throws java.lang.IndexOutOfBoundsException
195
    {
196
        _comboScaleList.insertElementAt(vComboScale, index);
197
    } //-- void addComboScale(int, com.iver.andami.plugins.config.generate.ComboScale) 
198

    
199
    /**
200
     * Method addSelectableTool
201
     * 
202
     * @param vSelectableTool
203
     */
204
    public void addSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool vSelectableTool)
205
        throws java.lang.IndexOutOfBoundsException
206
    {
207
        _selectableToolList.addElement(vSelectableTool);
208
    } //-- void addSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool) 
209

    
210
    /**
211
     * Method addSelectableTool
212
     * 
213
     * @param index
214
     * @param vSelectableTool
215
     */
216
    public void addSelectableTool(int index, com.iver.andami.plugins.config.generate.SelectableTool vSelectableTool)
217
        throws java.lang.IndexOutOfBoundsException
218
    {
219
        _selectableToolList.insertElementAt(vSelectableTool, index);
220
    } //-- void addSelectableTool(int, com.iver.andami.plugins.config.generate.SelectableTool) 
221

    
222
    /**
223
     * Method deleteIsVisible
224
     */
225
    public void deleteIsVisible()
226
    {
227
        this._has_isVisible= false;
228
    } //-- void deleteIsVisible() 
229

    
230
    /**
231
     * Method deletePosition
232
     */
233
    public void deletePosition()
234
    {
235
        this._has_position= false;
236
    } //-- void deletePosition() 
237

    
238
    /**
239
     * Method enumerateActionTool
240
     */
241
    public java.util.Enumeration enumerateActionTool()
242
    {
243
        return _actionToolList.elements();
244
    } //-- java.util.Enumeration enumerateActionTool() 
245

    
246
    /**
247
     * Method enumerateComboButton
248
     */
249
    public java.util.Enumeration enumerateComboButton()
250
    {
251
        return _comboButtonList.elements();
252
    } //-- java.util.Enumeration enumerateComboButton() 
253

    
254
    /**
255
     * Method enumerateComboCoords
256
     */
257
    public java.util.Enumeration enumerateComboCoords()
258
    {
259
        return _comboCoordsList.elements();
260
    } //-- java.util.Enumeration enumerateComboCoords() 
261

    
262
    /**
263
     * Method enumerateComboScale
264
     */
265
    public java.util.Enumeration enumerateComboScale()
266
    {
267
        return _comboScaleList.elements();
268
    } //-- java.util.Enumeration enumerateComboScale() 
269

    
270
    /**
271
     * Method enumerateSelectableTool
272
     */
273
    public java.util.Enumeration enumerateSelectableTool()
274
    {
275
        return _selectableToolList.elements();
276
    } //-- java.util.Enumeration enumerateSelectableTool() 
277

    
278
    /**
279
     * Method getActionTool
280
     * 
281
     * @param index
282
     */
283
    public com.iver.andami.plugins.config.generate.ActionTool getActionTool(int index)
284
        throws java.lang.IndexOutOfBoundsException
285
    {
286
        //-- check bounds for index
287
        if ((index < 0) || (index > _actionToolList.size())) {
288
            throw new IndexOutOfBoundsException();
289
        }
290
        
291
        return (com.iver.andami.plugins.config.generate.ActionTool) _actionToolList.elementAt(index);
292
    } //-- com.iver.andami.plugins.config.generate.ActionTool getActionTool(int) 
293

    
294
    /**
295
     * Method getActionTool
296
     */
297
    public com.iver.andami.plugins.config.generate.ActionTool[] getActionTool()
298
    {
299
        int size = _actionToolList.size();
300
        com.iver.andami.plugins.config.generate.ActionTool[] mArray = new com.iver.andami.plugins.config.generate.ActionTool[size];
301
        for (int index = 0; index < size; index++) {
302
            mArray[index] = (com.iver.andami.plugins.config.generate.ActionTool) _actionToolList.elementAt(index);
303
        }
304
        return mArray;
305
    } //-- com.iver.andami.plugins.config.generate.ActionTool[] getActionTool() 
306

    
307
    /**
308
     * Method getActionToolCount
309
     */
310
    public int getActionToolCount()
311
    {
312
        return _actionToolList.size();
313
    } //-- int getActionToolCount() 
314

    
315
    /**
316
     * Method getComboButton
317
     * 
318
     * @param index
319
     */
320
    public com.iver.andami.plugins.config.generate.ComboButton getComboButton(int index)
321
        throws java.lang.IndexOutOfBoundsException
322
    {
323
        //-- check bounds for index
324
        if ((index < 0) || (index > _comboButtonList.size())) {
325
            throw new IndexOutOfBoundsException();
326
        }
327
        
328
        return (com.iver.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index);
329
    } //-- com.iver.andami.plugins.config.generate.ComboButton getComboButton(int) 
330

    
331
    /**
332
     * Method getComboButton
333
     */
334
    public com.iver.andami.plugins.config.generate.ComboButton[] getComboButton()
335
    {
336
        int size = _comboButtonList.size();
337
        com.iver.andami.plugins.config.generate.ComboButton[] mArray = new com.iver.andami.plugins.config.generate.ComboButton[size];
338
        for (int index = 0; index < size; index++) {
339
            mArray[index] = (com.iver.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index);
340
        }
341
        return mArray;
342
    } //-- com.iver.andami.plugins.config.generate.ComboButton[] getComboButton() 
343

    
344
    /**
345
     * Method getComboButtonCount
346
     */
347
    public int getComboButtonCount()
348
    {
349
        return _comboButtonList.size();
350
    } //-- int getComboButtonCount() 
351

    
352
    /**
353
     * Method getComboCoords
354
     * 
355
     * @param index
356
     */
357
    public com.iver.andami.plugins.config.generate.ComboCoords getComboCoords(int index)
358
        throws java.lang.IndexOutOfBoundsException
359
    {
360
        //-- check bounds for index
361
        if ((index < 0) || (index > _comboCoordsList.size())) {
362
            throw new IndexOutOfBoundsException();
363
        }
364
        
365
        return (com.iver.andami.plugins.config.generate.ComboCoords) _comboCoordsList.elementAt(index);
366
    } //-- com.iver.andami.plugins.config.generate.ComboCoords getComboCoords(int) 
367

    
368
    /**
369
     * Method getComboCoords
370
     */
371
    public com.iver.andami.plugins.config.generate.ComboCoords[] getComboCoords()
372
    {
373
        int size = _comboCoordsList.size();
374
        com.iver.andami.plugins.config.generate.ComboCoords[] mArray = new com.iver.andami.plugins.config.generate.ComboCoords[size];
375
        for (int index = 0; index < size; index++) {
376
            mArray[index] = (com.iver.andami.plugins.config.generate.ComboCoords) _comboCoordsList.elementAt(index);
377
        }
378
        return mArray;
379
    } //-- com.iver.andami.plugins.config.generate.ComboCoords[] getComboCoords() 
380

    
381
    /**
382
     * Method getComboCoordsCount
383
     */
384
    public int getComboCoordsCount()
385
    {
386
        return _comboCoordsList.size();
387
    } //-- int getComboCoordsCount() 
388

    
389
    /**
390
     * Method getComboScale
391
     * 
392
     * @param index
393
     */
394
    public com.iver.andami.plugins.config.generate.ComboScale getComboScale(int index)
395
        throws java.lang.IndexOutOfBoundsException
396
    {
397
        //-- check bounds for index
398
        if ((index < 0) || (index > _comboScaleList.size())) {
399
            throw new IndexOutOfBoundsException();
400
        }
401
        
402
        return (com.iver.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index);
403
    } //-- com.iver.andami.plugins.config.generate.ComboScale getComboScale(int) 
404

    
405
    /**
406
     * Method getComboScale
407
     */
408
    public com.iver.andami.plugins.config.generate.ComboScale[] getComboScale()
409
    {
410
        int size = _comboScaleList.size();
411
        com.iver.andami.plugins.config.generate.ComboScale[] mArray = new com.iver.andami.plugins.config.generate.ComboScale[size];
412
        for (int index = 0; index < size; index++) {
413
            mArray[index] = (com.iver.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index);
414
        }
415
        return mArray;
416
    } //-- com.iver.andami.plugins.config.generate.ComboScale[] getComboScale() 
417

    
418
    /**
419
     * Method getComboScaleCount
420
     */
421
    public int getComboScaleCount()
422
    {
423
        return _comboScaleList.size();
424
    } //-- int getComboScaleCount() 
425

    
426
    /**
427
     * Returns the value of field 'isVisible'.
428
     * 
429
     * @return the value of field 'isVisible'.
430
     */
431
    public boolean getIsVisible()
432
    {
433
        return this._isVisible;
434
    } //-- boolean getIsVisible() 
435

    
436
    /**
437
     * Returns the value of field 'name'.
438
     * 
439
     * @return the value of field 'name'.
440
     */
441
    public java.lang.String getName()
442
    {
443
        return this._name;
444
    } //-- java.lang.String getName() 
445

    
446
    /**
447
     * Returns the value of field 'position'.
448
     * 
449
     * @return the value of field 'position'.
450
     */
451
    public int getPosition()
452
    {
453
        return this._position;
454
    } //-- int getPosition() 
455

    
456
    /**
457
     * Method getSelectableTool
458
     * 
459
     * @param index
460
     */
461
    public com.iver.andami.plugins.config.generate.SelectableTool getSelectableTool(int index)
462
        throws java.lang.IndexOutOfBoundsException
463
    {
464
        //-- check bounds for index
465
        if ((index < 0) || (index > _selectableToolList.size())) {
466
            throw new IndexOutOfBoundsException();
467
        }
468
        
469
        return (com.iver.andami.plugins.config.generate.SelectableTool) _selectableToolList.elementAt(index);
470
    } //-- com.iver.andami.plugins.config.generate.SelectableTool getSelectableTool(int) 
471

    
472
    /**
473
     * Method getSelectableTool
474
     */
475
    public com.iver.andami.plugins.config.generate.SelectableTool[] getSelectableTool()
476
    {
477
        int size = _selectableToolList.size();
478
        com.iver.andami.plugins.config.generate.SelectableTool[] mArray = new com.iver.andami.plugins.config.generate.SelectableTool[size];
479
        for (int index = 0; index < size; index++) {
480
            mArray[index] = (com.iver.andami.plugins.config.generate.SelectableTool) _selectableToolList.elementAt(index);
481
        }
482
        return mArray;
483
    } //-- com.iver.andami.plugins.config.generate.SelectableTool[] getSelectableTool() 
484

    
485
    /**
486
     * Method getSelectableToolCount
487
     */
488
    public int getSelectableToolCount()
489
    {
490
        return _selectableToolList.size();
491
    } //-- int getSelectableToolCount() 
492

    
493
    /**
494
     * Method hasIsVisible
495
     */
496
    public boolean hasIsVisible()
497
    {
498
        return this._has_isVisible;
499
    } //-- boolean hasIsVisible() 
500

    
501
    /**
502
     * Method hasPosition
503
     */
504
    public boolean hasPosition()
505
    {
506
        return this._has_position;
507
    } //-- boolean hasPosition() 
508

    
509
    /**
510
     * Method isValid
511
     */
512
    public boolean isValid()
513
    {
514
        try {
515
            validate();
516
        }
517
        catch (org.exolab.castor.xml.ValidationException vex) {
518
            return false;
519
        }
520
        return true;
521
    } //-- boolean isValid() 
522

    
523
    /**
524
     * Method marshal
525
     * 
526
     * @param out
527
     */
528
    public void marshal(java.io.Writer out)
529
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
530
    {
531
        
532
        Marshaller.marshal(this, out);
533
    } //-- void marshal(java.io.Writer) 
534

    
535
    /**
536
     * Method marshal
537
     * 
538
     * @param handler
539
     */
540
    public void marshal(org.xml.sax.ContentHandler handler)
541
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
542
    {
543
        
544
        Marshaller.marshal(this, handler);
545
    } //-- void marshal(org.xml.sax.ContentHandler) 
546

    
547
    /**
548
     * Method removeActionTool
549
     * 
550
     * @param index
551
     */
552
    public com.iver.andami.plugins.config.generate.ActionTool removeActionTool(int index)
553
    {
554
        java.lang.Object obj = _actionToolList.elementAt(index);
555
        _actionToolList.removeElementAt(index);
556
        return (com.iver.andami.plugins.config.generate.ActionTool) obj;
557
    } //-- com.iver.andami.plugins.config.generate.ActionTool removeActionTool(int) 
558

    
559
    /**
560
     * Method removeAllActionTool
561
     */
562
    public void removeAllActionTool()
563
    {
564
        _actionToolList.removeAllElements();
565
    } //-- void removeAllActionTool() 
566

    
567
    /**
568
     * Method removeAllComboButton
569
     */
570
    public void removeAllComboButton()
571
    {
572
        _comboButtonList.removeAllElements();
573
    } //-- void removeAllComboButton() 
574

    
575
    /**
576
     * Method removeAllComboCoords
577
     */
578
    public void removeAllComboCoords()
579
    {
580
        _comboCoordsList.removeAllElements();
581
    } //-- void removeAllComboCoords() 
582

    
583
    /**
584
     * Method removeAllComboScale
585
     */
586
    public void removeAllComboScale()
587
    {
588
        _comboScaleList.removeAllElements();
589
    } //-- void removeAllComboScale() 
590

    
591
    /**
592
     * Method removeAllSelectableTool
593
     */
594
    public void removeAllSelectableTool()
595
    {
596
        _selectableToolList.removeAllElements();
597
    } //-- void removeAllSelectableTool() 
598

    
599
    /**
600
     * Method removeComboButton
601
     * 
602
     * @param index
603
     */
604
    public com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int index)
605
    {
606
        java.lang.Object obj = _comboButtonList.elementAt(index);
607
        _comboButtonList.removeElementAt(index);
608
        return (com.iver.andami.plugins.config.generate.ComboButton) obj;
609
    } //-- com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int) 
610

    
611
    /**
612
     * Method removeComboCoords
613
     * 
614
     * @param index
615
     */
616
    public com.iver.andami.plugins.config.generate.ComboCoords removeComboCoords(int index)
617
    {
618
        java.lang.Object obj = _comboCoordsList.elementAt(index);
619
        _comboCoordsList.removeElementAt(index);
620
        return (com.iver.andami.plugins.config.generate.ComboCoords) obj;
621
    } //-- com.iver.andami.plugins.config.generate.ComboCoords removeComboCoords(int) 
622

    
623
    /**
624
     * Method removeComboScale
625
     * 
626
     * @param index
627
     */
628
    public com.iver.andami.plugins.config.generate.ComboScale removeComboScale(int index)
629
    {
630
        java.lang.Object obj = _comboScaleList.elementAt(index);
631
        _comboScaleList.removeElementAt(index);
632
        return (com.iver.andami.plugins.config.generate.ComboScale) obj;
633
    } //-- com.iver.andami.plugins.config.generate.ComboScale removeComboScale(int) 
634

    
635
    /**
636
     * Method removeSelectableTool
637
     * 
638
     * @param index
639
     */
640
    public com.iver.andami.plugins.config.generate.SelectableTool removeSelectableTool(int index)
641
    {
642
        java.lang.Object obj = _selectableToolList.elementAt(index);
643
        _selectableToolList.removeElementAt(index);
644
        return (com.iver.andami.plugins.config.generate.SelectableTool) obj;
645
    } //-- com.iver.andami.plugins.config.generate.SelectableTool removeSelectableTool(int) 
646

    
647
    /**
648
     * Method setActionTool
649
     * 
650
     * @param index
651
     * @param vActionTool
652
     */
653
    public void setActionTool(int index, com.iver.andami.plugins.config.generate.ActionTool vActionTool)
654
        throws java.lang.IndexOutOfBoundsException
655
    {
656
        //-- check bounds for index
657
        if ((index < 0) || (index > _actionToolList.size())) {
658
            throw new IndexOutOfBoundsException();
659
        }
660
        _actionToolList.setElementAt(vActionTool, index);
661
    } //-- void setActionTool(int, com.iver.andami.plugins.config.generate.ActionTool) 
662

    
663
    /**
664
     * Method setActionTool
665
     * 
666
     * @param actionToolArray
667
     */
668
    public void setActionTool(com.iver.andami.plugins.config.generate.ActionTool[] actionToolArray)
669
    {
670
        //-- copy array
671
        _actionToolList.removeAllElements();
672
        for (int i = 0; i < actionToolArray.length; i++) {
673
            _actionToolList.addElement(actionToolArray[i]);
674
        }
675
    } //-- void setActionTool(com.iver.andami.plugins.config.generate.ActionTool) 
676

    
677
    /**
678
     * Method setComboButton
679
     * 
680
     * @param index
681
     * @param vComboButton
682
     */
683
    public void setComboButton(int index, com.iver.andami.plugins.config.generate.ComboButton vComboButton)
684
        throws java.lang.IndexOutOfBoundsException
685
    {
686
        //-- check bounds for index
687
        if ((index < 0) || (index > _comboButtonList.size())) {
688
            throw new IndexOutOfBoundsException();
689
        }
690
        _comboButtonList.setElementAt(vComboButton, index);
691
    } //-- void setComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) 
692

    
693
    /**
694
     * Method setComboButton
695
     * 
696
     * @param comboButtonArray
697
     */
698
    public void setComboButton(com.iver.andami.plugins.config.generate.ComboButton[] comboButtonArray)
699
    {
700
        //-- copy array
701
        _comboButtonList.removeAllElements();
702
        for (int i = 0; i < comboButtonArray.length; i++) {
703
            _comboButtonList.addElement(comboButtonArray[i]);
704
        }
705
    } //-- void setComboButton(com.iver.andami.plugins.config.generate.ComboButton) 
706

    
707
    /**
708
     * Method setComboCoords
709
     * 
710
     * @param index
711
     * @param vComboCoords
712
     */
713
    public void setComboCoords(int index, com.iver.andami.plugins.config.generate.ComboCoords vComboCoords)
714
        throws java.lang.IndexOutOfBoundsException
715
    {
716
        //-- check bounds for index
717
        if ((index < 0) || (index > _comboCoordsList.size())) {
718
            throw new IndexOutOfBoundsException();
719
        }
720
        _comboCoordsList.setElementAt(vComboCoords, index);
721
    } //-- void setComboCoords(int, com.iver.andami.plugins.config.generate.ComboCoords) 
722

    
723
    /**
724
     * Method setComboCoords
725
     * 
726
     * @param comboCoordsArray
727
     */
728
    public void setComboCoords(com.iver.andami.plugins.config.generate.ComboCoords[] comboCoordsArray)
729
    {
730
        //-- copy array
731
        _comboCoordsList.removeAllElements();
732
        for (int i = 0; i < comboCoordsArray.length; i++) {
733
            _comboCoordsList.addElement(comboCoordsArray[i]);
734
        }
735
    } //-- void setComboCoords(com.iver.andami.plugins.config.generate.ComboCoords) 
736

    
737
    /**
738
     * Method setComboScale
739
     * 
740
     * @param index
741
     * @param vComboScale
742
     */
743
    public void setComboScale(int index, com.iver.andami.plugins.config.generate.ComboScale vComboScale)
744
        throws java.lang.IndexOutOfBoundsException
745
    {
746
        //-- check bounds for index
747
        if ((index < 0) || (index > _comboScaleList.size())) {
748
            throw new IndexOutOfBoundsException();
749
        }
750
        _comboScaleList.setElementAt(vComboScale, index);
751
    } //-- void setComboScale(int, com.iver.andami.plugins.config.generate.ComboScale) 
752

    
753
    /**
754
     * Method setComboScale
755
     * 
756
     * @param comboScaleArray
757
     */
758
    public void setComboScale(com.iver.andami.plugins.config.generate.ComboScale[] comboScaleArray)
759
    {
760
        //-- copy array
761
        _comboScaleList.removeAllElements();
762
        for (int i = 0; i < comboScaleArray.length; i++) {
763
            _comboScaleList.addElement(comboScaleArray[i]);
764
        }
765
    } //-- void setComboScale(com.iver.andami.plugins.config.generate.ComboScale) 
766

    
767
    /**
768
     * Sets the value of field 'isVisible'.
769
     * 
770
     * @param isVisible the value of field 'isVisible'.
771
     */
772
    public void setIsVisible(boolean isVisible)
773
    {
774
        this._isVisible = isVisible;
775
        this._has_isVisible = true;
776
    } //-- void setIsVisible(boolean) 
777

    
778
    /**
779
     * Sets the value of field 'name'.
780
     * 
781
     * @param name the value of field 'name'.
782
     */
783
    public void setName(java.lang.String name)
784
    {
785
        this._name = name;
786
    } //-- void setName(java.lang.String) 
787

    
788
    /**
789
     * Sets the value of field 'position'.
790
     * 
791
     * @param position the value of field 'position'.
792
     */
793
    public void setPosition(int position)
794
    {
795
        this._position = position;
796
        this._has_position = true;
797
    } //-- void setPosition(int) 
798

    
799
    /**
800
     * Method setSelectableTool
801
     * 
802
     * @param index
803
     * @param vSelectableTool
804
     */
805
    public void setSelectableTool(int index, com.iver.andami.plugins.config.generate.SelectableTool vSelectableTool)
806
        throws java.lang.IndexOutOfBoundsException
807
    {
808
        //-- check bounds for index
809
        if ((index < 0) || (index > _selectableToolList.size())) {
810
            throw new IndexOutOfBoundsException();
811
        }
812
        _selectableToolList.setElementAt(vSelectableTool, index);
813
    } //-- void setSelectableTool(int, com.iver.andami.plugins.config.generate.SelectableTool) 
814

    
815
    /**
816
     * Method setSelectableTool
817
     * 
818
     * @param selectableToolArray
819
     */
820
    public void setSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool[] selectableToolArray)
821
    {
822
        //-- copy array
823
        _selectableToolList.removeAllElements();
824
        for (int i = 0; i < selectableToolArray.length; i++) {
825
            _selectableToolList.addElement(selectableToolArray[i]);
826
        }
827
    } //-- void setSelectableTool(com.iver.andami.plugins.config.generate.SelectableTool) 
828

    
829
    /**
830
     * Method unmarshal
831
     * 
832
     * @param reader
833
     */
834
    public static java.lang.Object unmarshal(java.io.Reader reader)
835
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
836
    {
837
        return (com.iver.andami.plugins.config.generate.ToolBar) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ToolBar.class, reader);
838
    } //-- java.lang.Object unmarshal(java.io.Reader) 
839

    
840
    /**
841
     * Method validate
842
     */
843
    public void validate()
844
        throws org.exolab.castor.xml.ValidationException
845
    {
846
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
847
        validator.validate(this);
848
    } //-- void validate() 
849

    
850
}