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.
Parameters
listener
to be added
Add repaint request listener. In order to assure that no repaint requests are missed, the new repaint listener should paint the paintable right after adding itself as listener.
Parameters
target
target UIDL stream where the component should paint itself to
Exceptions
PaintException
if the paint operation failed
InvalidUIDLException
if incorrect UIDL is writted, and the error can be dealt with inside this method call.
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.
Parameters
listener
to be removed
Remove repaint request listener.
Request sending of repaint events on any further visible changes. Normally the paintable only send up to one repaint request for listeners after paint as the paintable as the paintable assumes that the listeners already know about the repaint need. This method resets the assumtion. Paint implicitly does the assumtion reset functionality implemented by this method. This method is normally used only by the terminals to note paintables about implicit repaints (painting the component without actually invoking paint method).