com.vaadin.terminal
Class LegacyPaint

java.lang.Object
  extended by com.vaadin.terminal.LegacyPaint
All Implemented Interfaces:
Serializable

public class LegacyPaint
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
LegacyPaint()
           
 
Method Summary
protected static boolean isVisibleInContext(Component c)
          Checks if the component is visible and its parent is visible, recursively.
static void paint(Component component, PaintTarget target)
           Paints the Paintable into a UIDL stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyPaint

public LegacyPaint()
Method Detail

paint

public static void paint(Component component,
                         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 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.

Do not override this to paint your component. Override #paintContent(PaintTarget) instead.

Parameters:
target - the target UIDL stream where the component should paint itself to.
Throws:
PaintException - if the paint operation failed.

isVisibleInContext

protected static boolean isVisibleInContext(Component c)
Checks if the component is visible and its parent is visible, recursively.

This is only a helper until paint is moved away from this class.

Returns:


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.