org.formaria.swing.pojo
Class SaveBeforeActionHandler

java.lang.Object
  extended by org.formaria.swing.pojo.SaveBeforeActionHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, EventAdapter

public class SaveBeforeActionHandler
extends java.lang.Object
implements EventAdapter, java.awt.event.ActionListener

An event handler to save the bound values before calling the specified event

Copyright (c) Formaria Ltd., 2008

License: see license.txt


Field Summary
protected  AriaEventHandler eventHandler
           
 
Constructor Summary
SaveBeforeActionHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          The action event has occured
 java.lang.String getAddMethodName()
          Get the name of the adder method e.g.
 long getEventMask()
          Get the event mask
 java.lang.String getListenerInterfaceName()
          Get the name of the listener e.g.
 void setEventHandler(AriaEventHandler xeh)
          Set the current event handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventHandler

protected AriaEventHandler eventHandler
Constructor Detail

SaveBeforeActionHandler

public SaveBeforeActionHandler()
Method Detail

setEventHandler

public void setEventHandler(AriaEventHandler xeh)
Set the current event handler

Specified by:
setEventHandler in interface EventAdapter
Parameters:
xeh - the event handler

getAddMethodName

public java.lang.String getAddMethodName()
Get the name of the adder method e.g. addActionListener

Specified by:
getAddMethodName in interface EventAdapter
Returns:
the method name

getListenerInterfaceName

public java.lang.String getListenerInterfaceName()
Get the name of the listener e.g. java.awt.event.ActionListener

Specified by:
getListenerInterfaceName in interface EventAdapter
Returns:
the listener name

getEventMask

public long getEventMask()
Get the event mask

Specified by:
getEventMask in interface EventAdapter
Returns:
the mask e.g. AWTEvent.ACTION_MASK

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
The action event has occured

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the event