org.jwarp.flow.form.model
Interface IFormFactory

All Superinterfaces:
IConfigurable

public interface IFormFactory
extends IConfigurable

This is the interface defining the basic functions a form must have. In fact it is a form factory responsible for handling all stuff when creating new form instances. Of course depending on the creation algorithm error when creating the form can occurr thud throwing a FormInitException. A form does actually not know how it is mapped finally (to HTML, JSP, XML, Swing)!

Author:
Anatole Tresch

Method Summary
 void addFactoryListener(IFormFactoryListener listener)
          Add a listener to the form.
 void addFactoryListener(IFormFactoryListener listener, int position)
          Add a listener to the form.
 IForm createForm(IWorkflowContext context)
          Return the static form data within the form definition.
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 

Method Detail

createForm

public IForm createForm(IWorkflowContext context)
Return the static form data within the form definition.
Returns:
The form data

addFactoryListener

public void addFactoryListener(IFormFactoryListener listener)
Add a listener to the form. A form sends form events describing its activities.
Parameters:
listener - The new listener

addFactoryListener

public void addFactoryListener(IFormFactoryListener listener,
                               int position)
Add a listener to the form. A form sends form events describing its activities.
Parameters:
listener - The new listener

©   O R C A   S y s t e m s