aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-11-08 16:25:03 +0200
committerJohannes Dahlström <johannesd@vaadin.com>2012-11-08 16:25:03 +0200
commite6c881bb4773daafb95768e57c939cdae5fcb1eb (patch)
tree2c9f78b177bdde39f3bfe3999f4fd5702431bcb8 /client
parentbd52209a82fe5a42cdc8aec3fba213ebbede22aa (diff)
downloadvaadin-framework-e6c881bb4773daafb95768e57c939cdae5fcb1eb.tar.gz
vaadin-framework-e6c881bb4773daafb95768e57c939cdae5fcb1eb.zip
Rename Application.getRootConnector to getUIConnector (#10158)
Change-Id: I9f7714cc8a723550e521b1cd0fb70499f3f12138
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java6
-rw-r--r--client/src/com/vaadin/client/ComponentLocator.java8
-rw-r--r--client/src/com/vaadin/client/LayoutManager.java2
-rw-r--r--client/src/com/vaadin/client/Util.java2
-rw-r--r--client/src/com/vaadin/client/VDebugConsole.java6
-rw-r--r--client/src/com/vaadin/client/ui/VOverlay.java2
-rw-r--r--client/src/com/vaadin/client/ui/notification/VNotification.java2
-rw-r--r--client/src/com/vaadin/client/ui/window/WindowConnector.java2
8 files changed, 15 insertions, 15 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index e227ef64e4..5475be4877 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -1502,10 +1502,10 @@ public class ApplicationConnection {
if (!c.getParent().getChildren().contains(c)) {
VConsole.error("ERROR: Connector is connected to a parent but the parent does not contain the connector");
}
- } else if ((c instanceof UIConnector && c == getRootConnector())) {
+ } else if (c == getUIConnector()) {
// UIConnector for this connection, leave as-is
} else if (c instanceof WindowConnector
- && getRootConnector().hasSubWindow(
+ && getUIConnector().hasSubWindow(
(WindowConnector) c)) {
// Sub window attached to this UIConnector, leave
// as-is
@@ -2782,7 +2782,7 @@ public class ApplicationConnection {
*
* @return the main view
*/
- public UIConnector getRootConnector() {
+ public UIConnector getUIConnector() {
return uIConnector;
}
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java
index d24b12ffe5..15962fefa9 100644
--- a/client/src/com/vaadin/client/ComponentLocator.java
+++ b/client/src/com/vaadin/client/ComponentLocator.java
@@ -453,7 +453,7 @@ public class ComponentLocator {
} else if (w instanceof VWindow) {
Connector windowConnector = ConnectorMap.get(client)
.getConnector(w);
- List<WindowConnector> subWindowList = client.getRootConnector()
+ List<WindowConnector> subWindowList = client.getUIConnector()
.getSubWindows();
int indexOfSubWindow = subWindowList.indexOf(windowConnector);
return PARENTCHILD_SEPARATOR + "VWindow[" + indexOfSubWindow + "]";
@@ -514,7 +514,7 @@ public class ComponentLocator {
if (part.equals(ROOT_ID)) {
w = RootPanel.get();
} else if (part.equals("")) {
- w = client.getRootConnector().getWidget();
+ w = client.getUIConnector().getWidget();
} else if (w == null) {
String id = part;
// Must be old static pid (PID_S*)
@@ -523,7 +523,7 @@ public class ComponentLocator {
if (connector == null) {
// Lookup by component id
// TODO Optimize this
- connector = findConnectorById(client.getRootConnector(),
+ connector = findConnectorById(client.getUIConnector(),
id.substring(5));
}
@@ -632,7 +632,7 @@ public class ComponentLocator {
* compatibility
*/
if (widgetClassName.equals("VWindow")) {
- List<WindowConnector> windows = client.getRootConnector()
+ List<WindowConnector> windows = client.getUIConnector()
.getSubWindows();
List<VWindow> windowWidgets = new ArrayList<VWindow>(
windows.size());
diff --git a/client/src/com/vaadin/client/LayoutManager.java b/client/src/com/vaadin/client/LayoutManager.java
index 9ed8f261e7..99f207edce 100644
--- a/client/src/com/vaadin/client/LayoutManager.java
+++ b/client/src/com/vaadin/client/LayoutManager.java
@@ -401,7 +401,7 @@ public class LayoutManager {
if (passes > 100) {
VConsole.log(LOOP_ABORT_MESSAGE);
VNotification.createNotification(VNotification.DELAY_FOREVER,
- connection.getRootConnector().getWidget()).show(
+ connection.getUIConnector().getWidget()).show(
LOOP_ABORT_MESSAGE, VNotification.CENTERED, "error");
break;
}
diff --git a/client/src/com/vaadin/client/Util.java b/client/src/com/vaadin/client/Util.java
index c9fe22528d..d111bd3093 100644
--- a/client/src/com/vaadin/client/Util.java
+++ b/client/src/com/vaadin/client/Util.java
@@ -703,7 +703,7 @@ public class Util {
VOverlay overlay = findWidget(element, VOverlay.class);
if (overlay != null && overlay.getOwner() != null) {
- return getConnectorForElement(client, client.getRootConnector()
+ return getConnectorForElement(client, client.getUIConnector()
.getWidget(), overlay.getOwner().getElement());
} else {
return null;
diff --git a/client/src/com/vaadin/client/VDebugConsole.java b/client/src/com/vaadin/client/VDebugConsole.java
index a5dbc9ede5..a436f6e648 100644
--- a/client/src/com/vaadin/client/VDebugConsole.java
+++ b/client/src/com/vaadin/client/VDebugConsole.java
@@ -117,7 +117,7 @@ public class VDebugConsole extends VOverlay implements Console {
for (ApplicationConnection a : ApplicationConfiguration
.getRunningApplications()) {
ComponentConnector connector = Util.getConnectorForElement(
- a, a.getRootConnector().getWidget(), eventTarget);
+ a, a.getUIConnector().getWidget(), eventTarget);
if (connector == null) {
connector = Util.getConnectorForElement(a,
RootPanel.get(), eventTarget);
@@ -146,7 +146,7 @@ public class VDebugConsole extends VOverlay implements Console {
for (ApplicationConnection a : ApplicationConfiguration
.getRunningApplications()) {
ComponentConnector paintable = Util.getConnectorForElement(
- a, a.getRootConnector().getWidget(), eventTarget);
+ a, a.getUIConnector().getWidget(), eventTarget);
if (paintable == null) {
paintable = Util.getConnectorForElement(a,
RootPanel.get(), eventTarget);
@@ -922,7 +922,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
protected void dumpConnectorInfo(ApplicationConnection a) {
- UIConnector root = a.getRootConnector();
+ UIConnector root = a.getUIConnector();
log("================");
log("Connector hierarchy for Root: " + root.getState().caption + " ("
+ root.getConnectorId() + ")");
diff --git a/client/src/com/vaadin/client/ui/VOverlay.java b/client/src/com/vaadin/client/ui/VOverlay.java
index 064e9fae44..dc6c7e4dff 100644
--- a/client/src/com/vaadin/client/ui/VOverlay.java
+++ b/client/src/com/vaadin/client/ui/VOverlay.java
@@ -657,7 +657,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
if (container == null) {
container = DOM.createDiv();
container.setId(id);
- String styles = ac.getRootConnector().getWidget().getParent()
+ String styles = ac.getUIConnector().getWidget().getParent()
.getStyleName();
container.setClassName(styles);
RootPanel.get().getElement().appendChild(container);
diff --git a/client/src/com/vaadin/client/ui/notification/VNotification.java b/client/src/com/vaadin/client/ui/notification/VNotification.java
index 1c456a53b3..436712ac6f 100644
--- a/client/src/com/vaadin/client/ui/notification/VNotification.java
+++ b/client/src/com/vaadin/client/ui/notification/VNotification.java
@@ -424,7 +424,7 @@ public class VNotification extends VOverlay {
final int delay = notification
.getIntAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_DELAY);
- createNotification(delay, client.getRootConnector().getWidget()).show(
+ createNotification(delay, client.getUIConnector().getWidget()).show(
html, position, style);
}
diff --git a/client/src/com/vaadin/client/ui/window/WindowConnector.java b/client/src/com/vaadin/client/ui/window/WindowConnector.java
index 6b1f4b9697..ebcdd24fee 100644
--- a/client/src/com/vaadin/client/ui/window/WindowConnector.java
+++ b/client/src/com/vaadin/client/ui/window/WindowConnector.java
@@ -72,7 +72,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
getLayoutManager().registerDependency(this, getWidget().header);
getLayoutManager().registerDependency(this, getWidget().footer);
- getWidget().setOwner(getConnection().getRootConnector().getWidget());
+ getWidget().setOwner(getConnection().getUIConnector().getWidget());
}
@Override