Revision 38564 branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/plugins/config/generate/SkinExtensionType.java
SkinExtensionType.java | ||
---|---|---|
46 | 46 |
private java.util.Vector _menuList; |
47 | 47 |
|
48 | 48 |
/** |
49 |
* Field _actionList |
|
50 |
*/ |
|
51 |
private java.util.Vector _actionList; |
|
52 |
|
|
53 |
/** |
|
49 | 54 |
* Field _toolBarList |
50 | 55 |
*/ |
51 | 56 |
private java.util.Vector _toolBarList; |
... | ... | |
68 | 73 |
public SkinExtensionType() { |
69 | 74 |
super(); |
70 | 75 |
_menuList = new Vector(); |
76 |
_actionList = new Vector(); |
|
71 | 77 |
_toolBarList = new Vector(); |
72 | 78 |
_comboButtonList = new Vector(); |
73 | 79 |
_comboScaleList = new Vector(); |
... | ... | |
147 | 153 |
_menuList.insertElementAt(vMenu, index); |
148 | 154 |
} //-- void addMenu(int, com.iver.andami.plugins.config.generate.Menu) |
149 | 155 |
|
156 |
|
|
150 | 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 |
/** |
|
151 | 181 |
* Method addToolBar |
152 | 182 |
* |
153 | 183 |
* @param vToolBar |
... | ... | |
195 | 225 |
} //-- java.util.Enumeration enumerateMenu() |
196 | 226 |
|
197 | 227 |
/** |
228 |
* Method enumerateAction |
|
229 |
*/ |
|
230 |
public java.util.Enumeration enumerateAction() |
|
231 |
{ |
|
232 |
return _actionList.elements(); |
|
233 |
} //-- java.util.Enumeration enumerateAction() |
|
234 |
|
|
235 |
/** |
|
198 | 236 |
* Method enumerateToolBar |
199 | 237 |
*/ |
200 | 238 |
public java.util.Enumeration enumerateToolBar() |
... | ... | |
314 | 352 |
} |
315 | 353 |
return mArray; |
316 | 354 |
} //-- com.iver.andami.plugins.config.generate.Menu[] getMenu() |
355 |
|
|
317 | 356 |
|
318 | 357 |
/** |
319 | 358 |
* Method getMenuCount |
... | ... | |
324 | 363 |
} //-- int getMenuCount() |
325 | 364 |
|
326 | 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 |
/** |
|
327 | 403 |
* Method getToolBar |
328 | 404 |
* |
329 | 405 |
* @param index |
... | ... | |
422 | 498 |
_menuList.removeAllElements(); |
423 | 499 |
} //-- void removeAllMenu() |
424 | 500 |
|
501 |
|
|
425 | 502 |
/** |
503 |
* Method removeAllAction |
|
504 |
*/ |
|
505 |
public void removeAllAction() |
|
506 |
{ |
|
507 |
_actionList.removeAllElements(); |
|
508 |
} //-- void removeAllAction() |
|
509 |
|
|
510 |
/** |
|
426 | 511 |
* Method removeAllToolBar |
427 | 512 |
*/ |
428 | 513 |
public void removeAllToolBar() |
Also available in: Unified diff