summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-08-02 06:07:54 +0000
committerJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-08-02 06:07:54 +0000
commit37337f67ee378ed5859f64bb9fbaba25054df1e7 (patch)
tree1ca91371c76966e814e864a29344ec616fcf5116 /src
parentf53c8e61fdb01a09aabfaff9b141daf09d8646c5 (diff)
downloadvaadin-framework-37337f67ee378ed5859f64bb9fbaba25054df1e7.tar.gz
vaadin-framework-37337f67ee378ed5859f64bb9fbaba25054df1e7.zip
Review fixes for #6766
svn changeset:20068/svn branch:6.7
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java9
-rw-r--r--src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java17
2 files changed, 13 insertions, 13 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index d43ee32884..b566077ef1 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -825,7 +825,7 @@ public abstract class AbstractCommunicationManager implements
repaintAll = true;
}
- writeUidlResponse(callback, repaintAll, outWriter, window,
+ writeUidlResponce(callback, repaintAll, outWriter, window,
analyzeLayouts);
}
@@ -835,7 +835,7 @@ public abstract class AbstractCommunicationManager implements
}
- public void writeUidlResponse(Callback callback, boolean repaintAll,
+ public void writeUidlResponce(Callback callback, boolean repaintAll,
final PrintWriter outWriter, Window window, boolean analyzeLayouts)
throws PaintException {
outWriter.print("\"changes\":[");
@@ -845,7 +845,7 @@ public abstract class AbstractCommunicationManager implements
List<InvalidLayout> invalidComponentRelativeSizes = null;
JsonPaintTarget paintTarget = new JsonPaintTarget(this, outWriter,
- repaintAll);
+ !repaintAll);
OpenWindowCache windowCache = currentlyOpenWindowsInClient.get(window
.getName());
if (windowCache == null) {
@@ -2192,8 +2192,7 @@ public abstract class AbstractCommunicationManager implements
public SimpleMultiPartInputStream(InputStream realInputStream,
String boundaryString) {
- boundary = (CRLF + DASHDASH + boundaryString)
- .toCharArray();
+ boundary = (CRLF + DASHDASH + boundaryString).toCharArray();
this.realInputStream = realInputStream;
}
diff --git a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
index cd31d4bbca..2f9a614b5f 100644
--- a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
+++ b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
@@ -79,7 +79,7 @@ public class JsonPaintTarget implements PaintTarget {
private int errorsOpen;
- private boolean fullRepaint = false;
+ private boolean cacheEnabled = false;
private final Collection<Paintable> paintedComponents = new HashSet<Paintable>();
@@ -94,14 +94,15 @@ public class JsonPaintTarget implements PaintTarget {
* @param manager
* @param outWriter
* A character-output stream.
- * @param fullRepaint
- * true if this is a full repaint, i.e. caches are to be
- * bypassed.
+ * @param cachingRequired
+ * true if this is not a full repaint, i.e. caches are to be
+ * used.
* @throws PaintException
* if the paint operation failed.
*/
public JsonPaintTarget(AbstractCommunicationManager manager,
- PrintWriter outWriter, boolean fullRepaint) throws PaintException {
+ PrintWriter outWriter, boolean cachingRequired)
+ throws PaintException {
this.manager = manager;
@@ -111,7 +112,7 @@ public class JsonPaintTarget implements PaintTarget {
// Initialize tag-writing
mOpenTags = new Stack<String>();
openJsonTags = new Stack<JsonTag>();
- this.fullRepaint = fullRepaint;
+ cacheEnabled = cachingRequired;
}
public void startTag(String tagName) throws PaintException {
@@ -686,7 +687,7 @@ public class JsonPaintTarget implements PaintTarget {
customLayoutArgumentsOpen = true;
}
- return !fullRepaint && isPreviouslyPainted;
+ return cacheEnabled && isPreviouslyPainted;
}
@Deprecated
@@ -1119,7 +1120,7 @@ public class JsonPaintTarget implements PaintTarget {
* @see com.vaadin.terminal.PaintTarget#isFullRepaint()
*/
public boolean isFullRepaint() {
- return fullRepaint;
+ return !cacheEnabled;
}
}