01: package org.jreform;
02:
03: /**
04: * A description of an object's invalid state.
05: *
06: * @author armandino (at) gmail.com
07: */
08: public interface MessageOnError {
09: /**
10: * Returns a message describing an error or an empty
11: * string if there was no error.
12: */
13: public String getOnError();
14:
15: /**
16: * Sets a message to be displayed on error.
17: */
18: public void setOnError(String messageOnError);
19:
20: }
|