|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by all classes that can be painted. Classes implementing this interface know how to output themselves to a UIDL stream and that way describing to the terminal how it should be displayed in the UI.
Nested Class Summary | |
static class |
Paintable.RepaintRequestEvent
Repaint request event is thrown when the paintable needs to be repainted. |
static interface |
Paintable.RepaintRequestListener
Listen repaint requests. |
Method Summary | |
void |
addListener(Paintable.RepaintRequestListener listener)
Add repaint request listener. |
void |
paint(PaintTarget target)
Paints the paintable into a UIDL stream. |
void |
removeListener(Paintable.RepaintRequestListener listener)
Remove repaint request listener. |
void |
requestRepaint()
Requests that the paintable should be repainted as soon as possible. |
void |
requestRepaintRequests()
Request sending of repaint events on any further visible changes. |
Method Detail |
public void paint(PaintTarget target) throws PaintException
Paints the paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It's 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.
target
- target UIDL stream where the component should paint
itself to
PaintException
- if the paint operation failed
InvalidUIDLException
- if incorrect UIDL is writted, and
the error can be dealt with inside this method call.public void requestRepaint()
public void addListener(Paintable.RepaintRequestListener listener)
listener
- to be addedpublic void removeListener(Paintable.RepaintRequestListener listener)
listener
- to be removedpublic void requestRepaintRequests()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |