repaintAll = true;
}
- writeUidlResponse(callback, repaintAll, outWriter, window,
+ writeUidlResponce(callback, repaintAll, outWriter, window,
analyzeLayouts);
}
}
- 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\":[");
List<InvalidLayout> invalidComponentRelativeSizes = null;
JsonPaintTarget paintTarget = new JsonPaintTarget(this, outWriter,
- repaintAll);
+ !repaintAll);
OpenWindowCache windowCache = currentlyOpenWindowsInClient.get(window
.getName());
if (windowCache == null) {
public SimpleMultiPartInputStream(InputStream realInputStream,
String boundaryString) {
- boundary = (CRLF + DASHDASH + boundaryString)
- .toCharArray();
+ boundary = (CRLF + DASHDASH + boundaryString).toCharArray();
this.realInputStream = realInputStream;
}
private int errorsOpen;
- private boolean fullRepaint = false;
+ private boolean cacheEnabled = false;
private final Collection<Paintable> paintedComponents = new HashSet<Paintable>();
* @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;
// Initialize tag-writing
mOpenTags = new Stack<String>();
openJsonTags = new Stack<JsonTag>();
- this.fullRepaint = fullRepaint;
+ cacheEnabled = cachingRequired;
}
public void startTag(String tagName) throws PaintException {
customLayoutArgumentsOpen = true;
}
- return !fullRepaint && isPreviouslyPainted;
+ return cacheEnabled && isPreviouslyPainted;
}
@Deprecated
* @see com.vaadin.terminal.PaintTarget#isFullRepaint()
*/
public boolean isFullRepaint() {
- return fullRepaint;
+ return !cacheEnabled;
}
}