| java.lang.Object fr.aliacom.form.common.FormLoader
FormLoader | final public class FormLoader (Code) | | This class is responsible of iterating an ILoader list and use
them to push the variable from the FormContext to the form UI.
Given a FormContext A and an IForm B, it is legal to have
B.getFormContext() != A.getForm() .
You can add multiple ILoader instances for a single form
variable. It is usefull when several form components displaying the same
variable.
author: tom author: (C) 2001, 2003 Thomas Cataldo |
Constructor Summary | |
public | FormLoader(IForm f) Creates a form loader with the given form reference. | public | FormLoader() Creates a form context with a null form reference. | public | FormLoader(FormContext ctx) Creates a form loader with a null form reference and the givent context. |
FormLoader | public FormLoader(IForm f)(Code) | | Creates a form loader with the given form reference.
Parameters: f - the form loaded by the current loader instance |
FormLoader | public FormLoader()(Code) | | Creates a form context with a null form reference.
|
FormLoader | public FormLoader(FormContext ctx)(Code) | | Creates a form loader with a null form reference and the givent context.
Parameters: ctx - |
addLoader | public void addLoader(String formVariable, ILoader loader)(Code) | | Add an ILoader used to load a specific FormVariable
Parameters: formVariable - the name of the variable you want to add a loader to. Parameters: loader - the loader used to load the FormVariable |
getForm | public IForm getForm()(Code) | | Returns the form loaded by this loader.
the form loaded by this loader. |
setForm | public void setForm(IForm form)(Code) | | Changes the form this loader will load
Parameters: form - the form that will be loaded |
|
|