|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.gui.Actions
public class Actions
This class maintains the set of global actions. It is used as a global repository so that the actions can retrieved at any given time (e.g. to be added to a gien toolbar...)
| Constructor Summary | |
|---|---|
Actions()
constructor |
|
| Method Summary | |
|---|---|
void |
add(String zClassName)
Add an instance of the given action class to the internal collection |
ActionBase |
get(String zClassName)
|
void |
updateActions()
this method is provided so that you can update the actions when all the components of the applications have been created (e.g. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Actions()
| Method Detail |
|---|
public void add(String zClassName)
throws Exception
zClassName - the fully qualified class name (e.g. com.quadrique.jbuildingblocks.gui.Actions).
Please note that the class has to be a sub-class of the com.quadrique.jbuildingblocks.gui.ActionBase class
com.quadrique.jbuildingblocks.core.exception.Exception - if the action has already been
added to the internal collection, if the corresponding class name could not be instantiated.
ExceptionActionBase
public ActionBase get(String zClassName)
throws Exception
zClassName - the fully qualified class name (e.g. com.quadrique.jbuildingblocks.gui.Actions)
com.quadrique.jbuildingblocks.core.exception.Exception - if no matching instance is found.
Exceptionpublic void updateActions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||