|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormValidator<T>
used for form dialogs that update data. Both methods defined by this interface are called upon pressing the 'OK'-button on a FormDialog.
FormDialog| Method Summary | |
|---|---|
T |
commitFormAction(JComponent formComponent)
This method processes/stores all relevant information from the form and returns the object that was committed. |
void |
validateForm(JComponent formComponent)
validates the given form by checking it for consistency. |
| Method Detail |
|---|
void validateForm(JComponent formComponent)
throws FormValidationException
formComponent - the component that contains the fields to be validated
FormValidationException - if any editable part of the form is inconsistent
T commitFormAction(JComponent formComponent)
throws Exception
formComponent - the component that contains the fields to be submitted for action
Exception - if something prevented the successfull processing of the form
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||