+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal;
import java.io.Serializable;
}
}
+ private static final class AllChildrenIterable implements
+ Iterable<ClientConnector>, Serializable {
+ private final ClientConnector connector;
+
+ private AllChildrenIterable(ClientConnector connector) {
+ this.connector = connector;
+ }
+
+ public Iterator<ClientConnector> iterator() {
+ CombinedIterator<ClientConnector> iterator = new CombinedIterator<ClientConnector>();
+ iterator.addIterator(connector.getExtensionIterator());
+
+ if (connector instanceof HasComponents) {
+ HasComponents hasComponents = (HasComponents) connector;
+ iterator.addIterator(hasComponents.iterator());
+ }
+
+ return iterator;
+ }
+ }
+
private class RpcInvoicationHandler implements InvocationHandler,
Serializable {
public static Iterable<ClientConnector> getAllChildrenIteratable(
final ClientConnector connector) {
- return new Iterable<ClientConnector>() {
- public Iterator<ClientConnector> iterator() {
- CombinedIterator<ClientConnector> iterator = new CombinedIterator<ClientConnector>();
- iterator.addIterator(connector.getExtensionIterator());
-
- if (connector instanceof HasComponents) {
- HasComponents hasComponents = (HasComponents) connector;
- iterator.addIterator(hasComponents.iterator());
- }
-
- return iterator;
- }
- };
+ return new AllChildrenIterable(connector);
}
public Iterator<Extension> getExtensionIterator() {
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+
package com.vaadin.terminal;
import com.vaadin.terminal.gwt.server.ClientConnector;
-public abstract class AbstractExtension extends AbstractClientConnector implements
- Extension {
+public abstract class AbstractExtension extends AbstractClientConnector
+ implements Extension {
protected Class<? extends ClientConnector> getAcceptedParentType() {
return ClientConnector.class;
*/
package com.vaadin.ui;
+import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
* @since 7.0.0
*
*/
-public class DirtyConnectorTracker {
+public class DirtyConnectorTracker implements Serializable {
private Set<ClientConnector> dirtyConnectors = new HashSet<ClientConnector>();
private Root root;