org.apache.cocoon.forms.event
Class AbstractFormHandler

java.lang.Object
  extended byorg.apache.cocoon.forms.event.AbstractFormHandler
All Implemented Interfaces:
FormHandler

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 1304280 2012-03-23 11:18:01Z 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-2008 The Apache Software Foundation. All Rights Reserved.