summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Root.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-16 19:41:46 +0200
committerArtur Signell <artur@vaadin.com>2012-03-21 15:27:29 +0200
commit36dca644148d270250340afbc74b0981f2e94177 (patch)
tree9689afa87f39a573bbd1e89ea20b3682a06271e8 /src/com/vaadin/ui/Root.java
parentceda855ab44ffe2330e639b1e0f51a5152602c42 (diff)
downloadvaadin-framework-36dca644148d270250340afbc74b0981f2e94177.tar.gz
vaadin-framework-36dca644148d270250340afbc74b0981f2e94177.zip
Moved Connector -> Connector Id mapping to AbstractComponent
Moved Connector Id -> Connector mapping to Application Moved dirty connector tracking to Root Removed adding of
Diffstat (limited to 'src/com/vaadin/ui/Root.java')
-rw-r--r--src/com/vaadin/ui/Root.java16
1 files changed, 16 insertions, 0 deletions
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);
+ }
+
}