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
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