final PrintWriter outWriter, Window window, boolean analyzeLayouts)
throws IOException, ServletException, PaintException {
- // If repaint is requested, clean all ids in this root window
if (repaintAll) {
+ // If repaint is requested, clean all ids in this root window
for (final Iterator<String> it = idPaintableMap.keySet().iterator(); it
.hasNext();) {
final Component c = (Component) idPaintableMap.get(it.next());
paintableIdMap.remove(c);
}
}
+ // clean WindowCache
+ OpenWindowCache openWindowCache = currentlyOpenWindowsInClient
+ .get(window.getName());
+ if (openWindowCache != null) {
+ openWindowCache.clear();
+ }
}
// Removes application if it has stopped during variable changes
/**
* Helper class for terminal to keep track of data that client is expected
* to know.
+ *
+ * TODO make customlayout templates (from theme) to be cached here.
*/
class OpenWindowCache {
return res.add(object);
}
+ public void clear() {
+ res.clear();
+ }
+
}
}