|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInvalidValueStrategy
This interface is used to determine how to handle invalid values entered by the user. An implementation of this interface will be called on leaving a field or when the Ok button (with defaultaction set to save) is clicked. You can only set one strategy per part. Both methods are always called, so if you don't want to use a checking on a form level, just return true form that method.
Method Summary | |
---|---|
boolean |
checkForm(IPart part)
Check the specified form for invalid values. |
boolean |
checkWidget(IWidget widget)
Checks the specified widget for invalid values. |
boolean |
handleInvalidValueException(IWidget widget,
InvalidValueException exception)
Handles an invalidvalueexception, so we can eg display a message to the user |
Method Detail |
---|
boolean checkForm(IPart part)
part
- the applicationpart to check
boolean checkWidget(IWidget widget)
widget
- the widge to check
boolean handleInvalidValueException(IWidget widget, InvalidValueException exception)
widget
- the widget with the exceptionexception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |