Revision 9956 trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/SkinExtensionType.java
SkinExtensionType.java | ||
---|---|---|
60 | 60 |
*/ |
61 | 61 |
private java.util.Vector _comboScaleList; |
62 | 62 |
|
63 |
/** |
|
64 |
* Field _comboCoordsList |
|
65 |
*/ |
|
66 |
private java.util.Vector _comboCoordsList; |
|
63 | 67 |
|
68 |
|
|
64 | 69 |
//----------------/ |
65 | 70 |
//- Constructors -/ |
66 | 71 |
//----------------/ |
... | ... | |
71 | 76 |
_toolBarList = new Vector(); |
72 | 77 |
_comboButtonList = new Vector(); |
73 | 78 |
_comboScaleList = new Vector(); |
79 |
_comboCoordsList = new Vector(); |
|
74 | 80 |
} //-- com.iver.andami.plugins.config.generate.SkinExtensionType() |
75 | 81 |
|
76 | 82 |
|
... | ... | |
102 | 108 |
} //-- void addComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) |
103 | 109 |
|
104 | 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 |
/** |
|
105 | 134 |
* Method addComboScale |
106 | 135 |
* |
107 | 136 |
* @param vComboScale |
... | ... | |
179 | 208 |
} //-- java.util.Enumeration enumerateComboButton() |
180 | 209 |
|
181 | 210 |
/** |
211 |
* Method enumerateComboCoords |
|
212 |
*/ |
|
213 |
public java.util.Enumeration enumerateComboCoords() |
|
214 |
{ |
|
215 |
return _comboCoordsList.elements(); |
|
216 |
} //-- java.util.Enumeration enumerateComboCoords() |
|
217 |
|
|
218 |
/** |
|
182 | 219 |
* Method enumerateComboScale |
183 | 220 |
*/ |
184 | 221 |
public java.util.Enumeration enumerateComboScale() |
... | ... | |
250 | 287 |
} //-- int getComboButtonCount() |
251 | 288 |
|
252 | 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 |
/** |
|
253 | 327 |
* Method getComboScale |
254 | 328 |
* |
255 | 329 |
* @param index |
... | ... | |
407 | 481 |
} //-- void removeAllComboButton() |
408 | 482 |
|
409 | 483 |
/** |
484 |
* Method removeAllComboCoords |
|
485 |
*/ |
|
486 |
public void removeAllComboCoords() |
|
487 |
{ |
|
488 |
_comboCoordsList.removeAllElements(); |
|
489 |
} //-- void removeAllComboCoords() |
|
490 |
|
|
491 |
/** |
|
410 | 492 |
* Method removeAllComboScale |
411 | 493 |
*/ |
412 | 494 |
public void removeAllComboScale() |
... | ... | |
443 | 525 |
} //-- com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int) |
444 | 526 |
|
445 | 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 |
/** |
|
446 | 540 |
* Method removeComboScale |
447 | 541 |
* |
448 | 542 |
* @param index |
... | ... | |
519 | 613 |
} //-- void setComboButton(com.iver.andami.plugins.config.generate.ComboButton) |
520 | 614 |
|
521 | 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 |
/** |
|
522 | 646 |
* Method setComboScale |
523 | 647 |
* |
524 | 648 |
* @param index |
Also available in: Unified diff