diff options
author | Henri Sara <hesara@vaadin.com> | 2012-03-14 12:32:21 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-21 17:42:34 +0200 |
commit | e905f033ff2b2aa094b51eae72fef63e68bd1800 (patch) | |
tree | 4d81f4d1e1bd5a7c0b1a356905f328ec5059c5c2 /src/com/vaadin/terminal/ErrorMessage.java | |
parent | ead998ecf701bb270ac810ab76af48484d9b1296 (diff) | |
download | vaadin-framework-e905f033ff2b2aa094b51eae72fef63e68bd1800.tar.gz vaadin-framework-e905f033ff2b2aa094b51eae72fef63e68bd1800.zip |
Refactor error messages on server side (#8437).
This is an intermediate step towards moving error messages from UIDL to
shared state.
Diffstat (limited to 'src/com/vaadin/terminal/ErrorMessage.java')
-rw-r--r-- | src/com/vaadin/terminal/ErrorMessage.java | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/src/com/vaadin/terminal/ErrorMessage.java b/src/com/vaadin/terminal/ErrorMessage.java index 5e55bfbcf6..d0e8173883 100644 --- a/src/com/vaadin/terminal/ErrorMessage.java +++ b/src/com/vaadin/terminal/ErrorMessage.java @@ -15,7 +15,7 @@ import java.io.Serializable; * @VERSION@ * @since 3.0 */ -public interface ErrorMessage extends Paintable, Serializable { +public interface ErrorMessage extends Serializable { public enum ErrorLevel { /** @@ -111,31 +111,19 @@ public interface ErrorMessage extends Paintable, Serializable { public ErrorLevel getErrorLevel(); /** - * Error messages are inmodifiable and thus listeners are not needed. This - * method should be implemented as empty. + * <p> + * Paints the error message into a UIDL stream. This method creates the UIDL + * sequence describing it and outputs it to the given UIDL stream. + * </p> * - * @param listener - * the listener to be added. - * @see com.vaadin.terminal.Paintable#addListener(Paintable.RepaintRequestListener) + * @param target + * the target UIDL stream where the error should paint itself to. + * @throws PaintException + * if the paint operation failed. + * @deprecated error messages should not be painted to UIDL but sent + * differently */ - public void addListener(RepaintRequestListener listener); - - /** - * Error messages are inmodifiable and thus listeners are not needed. This - * method should be implemented as empty. - * - * @param listener - * the listener to be removed. - * @see com.vaadin.terminal.Paintable#removeListener(Paintable.RepaintRequestListener) - */ - public void removeListener(RepaintRequestListener listener); - - /** - * Error messages are inmodifiable and thus listeners are not needed. This - * method should be implemented as empty. - * - * @see com.vaadin.terminal.Paintable#requestRepaint() - */ - public void requestRepaint(); + @Deprecated + public void paint(PaintTarget target) throws PaintException; } |