From 36dca644148d270250340afbc74b0981f2e94177 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 16 Mar 2012 19:41:46 +0200 Subject: Moved Connector -> Connector Id mapping to AbstractComponent Moved Connector Id -> Connector mapping to Application Moved dirty connector tracking to Root Removed adding of --- src/com/vaadin/ui/Root.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/com/vaadin/ui/Root.java') diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java index 42d921d93f..802fc0a45f 100644 --- a/src/com/vaadin/ui/Root.java +++ b/src/com/vaadin/ui/Root.java @@ -409,6 +409,9 @@ public abstract class Root extends AbstractComponentContainer implements /** Identifies the click event */ private static final String CLICK_EVENT_ID = VView.CLICK_EVENT_ID; + private DirtyConnectorTracker dirtyConnectorTracker = new DirtyConnectorTracker( + this); + /** * Creates a new empty root without a caption. This root will have a * {@link VerticalLayout} with margins enabled as its content. @@ -1567,4 +1570,17 @@ public abstract class Root extends AbstractComponentContainer implements // TODO How can a Root be invisible? What does it mean? return isVisible() && isEnabled(); } + + public DirtyConnectorTracker getDirtyConnectorTracker() { + return dirtyConnectorTracker; + } + + public void componentAttached(Component component) { + getDirtyConnectorTracker().componentAttached(component); + } + + public void componentDetached(Component component) { + getDirtyConnectorTracker().componentDetached(component); + } + } -- cgit v1.2.3