com.quadrique.jbuildingblocks.gui
Class Actions

java.lang.Object
  extended by com.quadrique.jbuildingblocks.gui.Actions
Direct Known Subclasses:
TableActions

public class Actions
extends Object

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...)

Author:
Hervé Rivere

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

Actions

public Actions()
constructor

Method Detail

add

public void add(String zClassName)
         throws Exception
Add an instance of the given action class to the internal collection

Parameters:
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
Throws:
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.
Exception
See Also:
ActionBase

get

public ActionBase get(String zClassName)
               throws Exception
Parameters:
zClassName - the fully qualified class name (e.g. com.quadrique.jbuildingblocks.gui.Actions)
Returns:
the ActionBase instance corresponding to the given class name
Throws:
com.quadrique.jbuildingblocks.core.exception.Exception - if no matching instance is found.
Exception

updateActions

public 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. you might need to register as a listener of a given GUI component...). The method simply calls the updateAction() method of each action



Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.