|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Form
The graphical representation of the FormModel
by extending
ControlFactory
and providing FormModel
related methods.
Additional methods that link with the model are:
newSingleLineResultsReporter(Messagable)
: combine the
validation results of the model with a messagable component to show
validation messages.addGuarded(Guarded)
, addGuarded(Guarded, int)
and
removeGuarded(Guarded)
to bind objects to the formModel state and
implement a suitable reaction. This can translate in eg a save-button that
will synchronize its enabled state with a dirty and no-error state in the
formModel.
Method Summary | |
---|---|
void |
addChildForm(Form form)
Add the given Form as a child to this Form. |
void |
addGuarded(Guarded guarded)
Attach the given Guarded object with the default mask to the
formModel. |
void |
addGuarded(Guarded guarded,
int mask)
Attach the given Guarded object with the specified mask to the
formModel. |
void |
addValidationListener(ValidationListener listener)
Add a ValidationListener. |
void |
addValidationResultsReporter(ValidationResultsReporter validationResultsReporter)
Add a ValidationResultsReporter to this Form. |
void |
commit()
Commit all values of the FormModel . |
ValidatingFormModel |
getFormModel()
Returns the formModel used by the form. |
Object |
getFormObject()
Convenience method to return the formObject currently used in the inner formModel. |
String |
getId()
Returns the id of this form. |
List |
getValidationResultsReporters()
Returns the list of ValidationResultsReporters of this Form. |
Object |
getValue(String formProperty)
Convenience method to get the value of a specific property from the inner formModel. |
ValueModel |
getValueModel(String formProperty)
Convenience method to get the valueModel of a specific property from the inner formModel. |
boolean |
hasErrors()
Returns true if the inner FormModel has
errors. |
ValidationResultsReporter |
newSingleLineResultsReporter(Messagable messageAreaPane)
Create a ValidationResultsReporter for this form, sending input
to the given Messagable . |
void |
removeChildForm(Form form)
Remove the given Form as child from this Form. |
void |
removeGuarded(Guarded guarded)
Detach the Guarded object. |
void |
removeValidationListener(ValidationListener listener)
Remove a ValidationListener. |
void |
removeValidationResultsReporter(ValidationResultsReporter validationResultsReporter)
Remove the given ValidationResultsReporter from this Form. |
void |
reset()
Reset the FormModel . |
void |
revert()
Revert the FormModel . |
void |
setFormObject(Object formObject)
Convenience method to set the formObject on the inner formModel. |
Methods inherited from interface org.springframework.richclient.factory.ControlFactory |
---|
getControl |
Method Detail |
---|
String getId()
ValidatingFormModel getFormModel()
Object getFormObject()
void setFormObject(Object formObject)
Object getValue(String formProperty)
ValueModel getValueModel(String formProperty)
void addValidationListener(ValidationListener listener)
void removeValidationListener(ValidationListener listener)
ValidationResultsReporter newSingleLineResultsReporter(Messagable messageAreaPane)
ValidationResultsReporter
for this form, sending input
to the given Messagable
.
TODO check why it's specifically mentioning "singleLine" in the method
name (can be any validationResultsReporter)
messageAreaPane
- the message receiver used by the created
resultsReporter.
void addGuarded(Guarded guarded)
Guarded
object with the default mask to the
formModel.
addGuarded(Guarded, int)
,
FormGuard
void addGuarded(Guarded guarded, int mask)
Guarded
object with the specified mask to the
formModel.
FormGuard
void removeGuarded(Guarded guarded)
Guarded
object.
List getValidationResultsReporters()
void addValidationResultsReporter(ValidationResultsReporter validationResultsReporter)
void removeValidationResultsReporter(ValidationResultsReporter validationResultsReporter)
void addChildForm(Form form)
void removeChildForm(Form form)
boolean hasErrors()
true
if the inner FormModel
has
errors.
void commit()
FormModel
.
FormModel.commit()
void revert()
FormModel
.
FormModel.revert()
void reset()
FormModel
.
FormModel.reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |