Remove usage of to-be-deprecated GWT DOM helper methods

These are not all currently deprecated, but are deprecated in GWT
master, e.g.:
https://gwt.googlesource.com/gwt/+/a6044a4a54c352b2709d27dd1907e977ce1607ad

This change was produced with an automated tool courtesy of the GWT
team.

Change-Id: Ie5401a3e2231bad7099c4ff35e2c64d77cbbb33b
This commit is contained in:
Dave Borowitz
2013-10-02 10:36:39 -07:00
parent cdae61f015
commit 9577768bf4
17 changed files with 24 additions and 34 deletions

View File

@@ -159,7 +159,7 @@ public class CopyableLabel extends Composite implements HasText {
h.closeElement("div");
if (swf != null) {
DOM.removeChild(getElement(), swf);
getElement().removeChild(swf);
}
DOM.appendChild(getElement(), swf = SafeHtml.parse(h));
initHideHandler();

View File

@@ -77,8 +77,8 @@ public class KeyHelpPopup extends PluginSafePopupPanel implements
body.add(lists);
focus = new FocusPanel(body);
DOM.setStyleAttribute(focus.getElement(), "outline", "0px");
DOM.setElementAttribute(focus.getElement(), "hideFocus", "true");
focus.getElement().getStyle().setProperty("outline", "0px");
focus.getElement().setAttribute("hideFocus", "true");
focus.addKeyPressHandler(this);
focus.addKeyDownHandler(this);
add(focus);

View File

@@ -15,7 +15,6 @@
package com.google.gwtexpui.globalkey.client;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.TextArea;
public class NpTextArea extends TextArea {
@@ -29,6 +28,6 @@ public class NpTextArea extends TextArea {
}
public void setSpellCheck(boolean spell) {
DOM.setElementPropertyBoolean(getElement(), "spellcheck", spell);
getElement().setPropertyBoolean("spellcheck", spell);
}
}