diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-03-24 18:24:45 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-03-25 11:33:17 +0000 |
commit | a9845c9c10ec891800e4a9bc57fbb95d1275de32 (patch) | |
tree | caf4736ad192863664c013d5f80754320a8d0f0e /uitest/src/com/vaadin/tests/minitutorials | |
parent | dc89e28f4d8251d0b721a2b9e143770a5fcda195 (diff) | |
download | vaadin-framework-a9845c9c10ec891800e4a9bc57fbb95d1275de32.tar.gz vaadin-framework-a9845c9c10ec891800e4a9bc57fbb95d1275de32.zip |
Refactor to use the right Element class (#13287)
Changed implementations and APIs to use the non-deprecated Element class
wherever possible without breaking backwards compatibility.
* Methods defined in interfaces have not been touched.
* Return types have only been changed methods that should have no
existing third party callers (i.e. private, internal or @since 7.2)
* For methods that third party code might have overridden, the method
has been deprecated in favor of a new method that just delegates to the
old method.
* For methods that can't reasonably be overridden by third party code
(i.e. private, final, static, internal or @since 7.2), the parameter
type has been changed without retaining the old method.
Change-Id: I7da943a77b8d0d0b9185d8c70f87d676a275d24b
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials')
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java index 3264b1b047..17d2fc3f93 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java @@ -16,6 +16,7 @@ package com.vaadin.tests.minitutorials.v7a2; +import com.google.gwt.dom.client.Element; import com.vaadin.client.ui.AbstractComponentConnector; import com.vaadin.client.ui.SimpleManagedLayout; import com.vaadin.client.ui.layout.ElementResizeEvent; @@ -49,8 +50,7 @@ public class MyPickerConnector extends AbstractComponentConnector implements @Override protected void init() { - com.google.gwt.user.client.Element button = getWidget().getWidget(1) - .getElement(); + Element button = getWidget().getWidget(1).getElement(); getLayoutManager().addElementResizeListener(button, listener); getLayoutManager().registerDependency(this, button); @@ -58,8 +58,7 @@ public class MyPickerConnector extends AbstractComponentConnector implements @Override public void onUnregister() { - com.google.gwt.user.client.Element button = getWidget().getWidget(1) - .getElement(); + Element button = getWidget().getWidget(1).getElement(); getLayoutManager().removeElementResizeListener(button, listener); getLayoutManager().unregisterDependency(this, button); @@ -67,8 +66,7 @@ public class MyPickerConnector extends AbstractComponentConnector implements @Override public void layout() { - com.google.gwt.user.client.Element button = getWidget().getWidget(1) - .getElement(); + Element button = getWidget().getWidget(1).getElement(); int buttonWidth = getLayoutManager().getOuterWidth(button); buttonWidth -= getLayoutManager().getMarginRight(button); getWidget().adjustButtonSpace(buttonWidth); |