summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-16 20:17:44 +0200
committerArtur Signell <artur@vaadin.com>2012-03-21 15:27:36 +0200
commit5b03fb1f01acd641b28dcfd9af68c6df2c2ae832 (patch)
tree3f11041340a23327f1a60c97fd632d2e38d06780
parentc11f2767818e803a0f93e50b3ef0aefa45bbd465 (diff)
downloadvaadin-framework-5b03fb1f01acd641b28dcfd9af68c6df2c2ae832.tar.gz
vaadin-framework-5b03fb1f01acd641b28dcfd9af68c6df2c2ae832.zip
Minor cleanup
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index 37b0509218..a3980d4c2a 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -766,7 +766,7 @@ public abstract class AbstractCommunicationManager implements
public void writeUidlResponse(boolean repaintAll,
final PrintWriter outWriter, Root root, boolean analyzeLayouts)
throws PaintException {
- ArrayList<Connector> dirtyVisibleConnectors = new ArrayList<Connector>();
+ ArrayList<ClientConnector> dirtyVisibleConnectors = new ArrayList<ClientConnector>();
Application application = root.getApplication();
// Paints components
DirtyConnectorTracker rootConnectorTracker = root
@@ -805,6 +805,9 @@ public abstract class AbstractCommunicationManager implements
for (Connector connector : dirtyVisibleConnectors) {
if (connector instanceof Paintable) {
+ System.out.println(" * Painting legacy Paintable "
+ + connector.getClass().getName() + "@"
+ + Integer.toHexString(connector.hashCode()));
Paintable p = (Paintable) connector;
paintTarget.startTag("change");
final String pid = connector.getConnectorId();
@@ -926,8 +929,8 @@ public abstract class AbstractCommunicationManager implements
// which they were performed, remove the calls from components
LinkedList<ClientConnector> rpcPendingQueue = new LinkedList<ClientConnector>(
- (Collection<? extends ClientConnector>) dirtyVisibleConnectors);
- List<ClientMethodInvocation> pendingInvocations = collectPendingRpcCalls(rpcPendingQueue);
+ dirtyVisibleConnectors);
+ List<ClientMethodInvocation> pendingInvocations = collectPendingRpcCalls(dirtyVisibleConnectors);
JSONArray rpcCalls = new JSONArray();
for (ClientMethodInvocation invocation : pendingInvocations) {
@@ -1166,7 +1169,7 @@ public abstract class AbstractCommunicationManager implements
* @return ordered list of pending RPC calls
*/
private List<ClientMethodInvocation> collectPendingRpcCalls(
- LinkedList<ClientConnector> rpcPendingQueue) {
+ List<ClientConnector> rpcPendingQueue) {
List<ClientMethodInvocation> pendingInvocations = new ArrayList<ClientMethodInvocation>();
for (ClientConnector connector : rpcPendingQueue) {
List<ClientMethodInvocation> paintablePendingRpc = connector
@@ -1395,11 +1398,11 @@ public abstract class AbstractCommunicationManager implements
applyInvocation(app, invocation);
continue;
}
-
- final VariableOwner owner = (VariableOwner) getConnector(app,
+ final Connector connector = getConnector(app,
invocation.getConnectorId());
+ final VariableOwner owner = (VariableOwner) connector;
- boolean connectorEnabled = owner.isEnabled();
+ boolean connectorEnabled = connector.isConnectorEnabled();
if (owner != null && connectorEnabled) {
VariableChange change = new VariableChange(invocation);