From: Matti Tahvonen Date: Tue, 5 Jun 2007 11:42:12 +0000 (+0000) Subject: added missing file from last commit X-Git-Tag: 6.7.0.beta1~6352 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=466e4d315d2d353763cf19b136ca97f163855a7c;p=vaadin-framework.git added missing file from last commit svn changeset:1583/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java b/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java new file mode 100644 index 0000000000..8db97e7dfb --- /dev/null +++ b/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java @@ -0,0 +1,59 @@ +package com.itmill.toolkit.terminal.web; + +import java.util.Set; + +import com.itmill.toolkit.terminal.PaintException; +import com.itmill.toolkit.terminal.Paintable; +import com.itmill.toolkit.terminal.Resource; +import com.itmill.toolkit.terminal.VariableOwner; + +public interface AjaxPaintTarget { + + /** + * Gets the UIDL already printed to stream. Paint target must be closed + * before the getUIDL can be called. + * + * @return the UIDL. + */ + public abstract String getUIDL(); + + /** + * Closes the paint target. Paint target must be closed before the + * getUIDL can be called. Subsequent attempts to write to + * paint target. If the target was already closed, call to this function is + * ignored. will generate an exception. + * + * @throws PaintException + * if the paint operation failed. + */ + public abstract void close() throws PaintException; + + /** + * + * @return + */ + public abstract boolean isTrackPaints(); + + /** + * Gets the number of paints. + * + * @return the number of paints. + */ + public abstract int getNumberOfPaints(); + + /** + * Sets the tracking to true or false. + * + * This also resets the number of paints. + * + * @param enabled + * is the tracking is enabled or not. + * @see #getNumberOfPaints() + */ + public abstract void setTrackPaints(boolean enabled); + + public abstract void setPreCachedResources(Set preCachedResources); + + public abstract Set getPreCachedResources() ; + +} \ No newline at end of file