From 466e4d315d2d353763cf19b136ca97f163855a7c Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 5 Jun 2007 11:42:12 +0000 Subject: [PATCH] added missing file from last commit svn changeset:1583/svn branch:trunk --- .../toolkit/terminal/web/AjaxPaintTarget.java | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java 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 -- 2.39.5