org.apache.cocoon.forms.event
Class AbstractFormHandler

java.lang.Object
  extended by org.apache.cocoon.forms.event.AbstractFormHandler
All Implemented Interfaces:
FormHandler
Direct Known Subclasses:
Form1Handler

public abstract class AbstractFormHandler
extends Object
implements FormHandler

Abstract implementation of FormHandler, which checks the type of the WidgetEvent and calls the more specific handleActionEvent(ActionEvent) or handleValueChangedEvent(ValueChangedEvent) methods.

Version:
$Id: AbstractFormHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
AbstractFormHandler()
           
 
Method Summary
abstract  void handleActionEvent(ActionEvent actionEvent)
          Called when an ActionEvent occured.
 void handleEvent(WidgetEvent widgetEvent)
           
abstract  void handleValueChangedEvent(ValueChangedEvent valueChangedEvent)
          Called when an ValueChangedEvent occured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormHandler

public AbstractFormHandler()
Method Detail

handleEvent

public void handleEvent(WidgetEvent widgetEvent)
Specified by:
handleEvent in interface FormHandler

handleActionEvent

public abstract void handleActionEvent(ActionEvent actionEvent)
Called when an ActionEvent occured.


handleValueChangedEvent

public abstract void handleValueChangedEvent(ValueChangedEvent valueChangedEvent)
Called when an ValueChangedEvent occured.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.