com.quadrique.jbuildingblocks.gui
Class TableActions

java.lang.Object
  extended by com.quadrique.jbuildingblocks.gui.Actions
      extended by com.quadrique.jbuildingblocks.gui.TableActions
All Implemented Interfaces:
SelectionListener

public class TableActions
extends Actions
implements SelectionListener

This class is used to hold a set of table actions. Each action is represented as a TableAction instance

Author:
Hervé Rivere

Constructor Summary
TableActions()
          constructor
 
Method Summary
 TableAction getTableAction(String zClassName)
           
 void newSelection(SelectionBaseEvent zEvent)
          This method is called whenever a new selection occurs in the tablr.
 void update(Table zTable)
          this method is provided so that you can create this instance, add your actions, create the GUI Table and then have this instance register for the corresponding Table events and then let the actions be assoc
 
Methods inherited from class com.quadrique.jbuildingblocks.gui.Actions
add, get, updateActions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableActions

public TableActions()
constructor

Method Detail

getTableAction

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

update

public void update(Table zTable)
this method is provided so that you can create this instance, add your actions, create the GUI Table and then have this instance register for the corresponding Table events and then let the actions be assoc

Parameters:
zTable -

newSelection

public void newSelection(SelectionBaseEvent zEvent)
This method is called whenever a new selection occurs in the tablr. The method propagates the event to all the TableAction instances.

Specified by:
newSelection in interface SelectionListener
Parameters:
zEvent - the selection event


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