]> source.dussan.org Git - vaadin-framework.git/commitdiff
added missing file from last commit
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 5 Jun 2007 11:42:12 +0000 (11:42 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 5 Jun 2007 11:42:12 +0000 (11:42 +0000)
svn changeset:1583/svn branch:trunk

src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java [new file with mode: 0644]

diff --git a/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java b/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java
new file mode 100644 (file)
index 0000000..8db97e7
--- /dev/null
@@ -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 <code>getUIDL</code> can be called.
+        * 
+        * @return the UIDL.
+        */
+       public abstract String getUIDL();
+
+       /**
+        * Closes the paint target. Paint target must be closed before the
+        * <code>getUIDL</code> 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