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
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();
// 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) {
* @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
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);