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
*
* @return the main view
*/
- public UIConnector getRootConnector() {
+ public UIConnector getUIConnector() {
return uIConnector;
}
} 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 + "]";
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*)
if (connector == null) {
// Lookup by component id
// TODO Optimize this
- connector = findConnectorById(client.getRootConnector(),
+ connector = findConnectorById(client.getUIConnector(),
id.substring(5));
}
* compatibility
*/
if (widgetClassName.equals("VWindow")) {
- List<WindowConnector> windows = client.getRootConnector()
+ List<WindowConnector> windows = client.getUIConnector()
.getSubWindows();
List<VWindow> windowWidgets = new ArrayList<VWindow>(
windows.size());
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;
}
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;
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);
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);
}
protected void dumpConnectorInfo(ApplicationConnection a) {
- UIConnector root = a.getRootConnector();
+ UIConnector root = a.getUIConnector();
log("================");
log("Connector hierarchy for Root: " + root.getState().caption + " ("
+ root.getConnectorId() + ")");
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);
final int delay = notification
.getIntAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_DELAY);
- createNotification(delay, client.getRootConnector().getWidget()).show(
+ createNotification(delay, client.getUIConnector().getWidget()).show(
html, position, style);
}
getLayoutManager().registerDependency(this, getWidget().header);
getLayoutManager().registerDependency(this, getWidget().footer);
- getWidget().setOwner(getConnection().getRootConnector().getWidget());
+ getWidget().setOwner(getConnection().getUIConnector().getWidget());
}
@Override
updatedIntSet.add(Integer.valueOf(-integer.intValue()));
}
rpc.sendSet(updatedIntSet,
- Collections.singleton(getRootConnector()), beanSet);
+ Collections.singleton(getUIConnector()), beanSet);
}
@Override
rpc.sendMap(Collections.singletonMap("a", stringMap.get("b")),
Collections.singletonMap(getThisConnector(),
- connectorMap.get(getRootConnector())),
+ connectorMap.get(getUIConnector())),
Collections.singletonMap(
Integer.valueOf(stringMap.size()),
getThisConnector()), updatedBeanMap);
Collections.sort(intList);
Collections.reverse(beanList);
rpc.sendList(intList,
- Arrays.asList(getThisConnector(), getRootConnector()),
+ Arrays.asList(getThisConnector(), getUIConnector()),
beanList);
}
});
}
- private Connector getRootConnector() {
- return getConnection().getRootConnector();
+ private Connector getUIConnector() {
+ return getConnection().getUIConnector();
}
private Connector getThisConnector() {