|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.UserError
public class UserError
UserError is a controlled error occurred in application. User
errors are occur in normal usage of the application and guide the user.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.Paintable |
|---|
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
| Field Summary | |
|---|---|
static int |
CONTENT_PREFORMATTED
Content mode, where the error contains preformatted text. |
static int |
CONTENT_TEXT
Content mode, where the error contains only plain text. |
static int |
CONTENT_UIDL
Formatted content mode, where the contents is XML restricted to the UIDL 1.0 formatting markups. |
| Fields inherited from interface com.itmill.toolkit.terminal.ErrorMessage |
|---|
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING |
| Constructor Summary | |
|---|---|
UserError(String textErrorMessage)
Creates a textual error message of level ERROR. |
|
UserError(String message,
int contentMode,
int errorLevel)
Creates a error message with level and content mode. |
|
| Method Summary | |
|---|---|
void |
addListener(Paintable.RepaintRequestListener listener)
Error messages are inmodifiable and thus listeners are not needed. |
int |
getErrorLevel()
Gets the errors level. |
void |
paint(PaintTarget target)
Paints the paintable into a UIDL stream. |
void |
removeListener(Paintable.RepaintRequestListener listener)
Error messages are inmodifiable and thus listeners are not needed. |
void |
requestRepaint()
Error messages are inmodifiable and thus listeners are not needed. |
void |
requestRepaintRequests()
Request sending of repaint events on any further visible changes. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CONTENT_TEXT
public static final int CONTENT_PREFORMATTED
public static final int CONTENT_UIDL
| Constructor Detail |
|---|
public UserError(String textErrorMessage)
textErrorMessage - the text of the error message.
public UserError(String message,
int contentMode,
int errorLevel)
message - the error message.contentMode - the content Mode.errorLevel - the level of error.| Method Detail |
|---|
public int getErrorLevel()
ErrorMessage
getErrorLevel in interface ErrorMessagepublic void addListener(Paintable.RepaintRequestListener listener)
ErrorMessage
addListener in interface ErrorMessageaddListener in interface Paintablelistener - the listener to be added.Paintable.addListener(Paintable.RepaintRequestListener)public void removeListener(Paintable.RepaintRequestListener listener)
ErrorMessage
removeListener in interface ErrorMessageremoveListener in interface Paintablelistener - the listener to be removed.Paintable.removeListener(Paintable.RepaintRequestListener)public void requestRepaint()
ErrorMessage
requestRepaint in interface ErrorMessagerequestRepaint in interface PaintablePaintable.requestRepaint()
public void paint(PaintTarget target)
throws PaintException
PaintablePaints the paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.
paint in interface Paintabletarget - the target UIDL stream where the component should paint itself
to.
PaintException - if the paint operation failed.public void requestRepaintRequests()
PaintableThis method is normally used only by the terminals to note paintables about implicit repaints (painting the component without actually invoking paint method).
requestRepaintRequests in interface Paintablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||