org.apache.cocoon.forms.event
Interface FormHandler

All Known Implementing Classes:
AbstractFormHandler, Form1Handler

public interface FormHandler

A FormHandler can be registered with a Form, and will then receive all events fired by widgets on the form.

It provides an alternative way of handling events, instead of specifying the eventhandlers in the form definition.

It is useful when you want to write your event-handling code in Java, have all events handled by one class (which could of course again delegate to other classes), and when you want the event handler to have access to objects it would not be able to get access to if they were part of the form definition.

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

Method Summary
 void handleEvent(WidgetEvent widgetEvent)
           
 

Method Detail

handleEvent

void handleEvent(WidgetEvent widgetEvent)


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