import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.query.client.GQuery;
-import com.google.gwt.query.client.js.JsRegexp;
import com.google.gwt.query.client.js.JsUtils;
+import com.google.gwt.regexp.shared.RegExp;
/**
* Helper class for setting and getting attribute on an element.
*/
private static class TypeAttrSetter extends DefaultSetter {
private static AttributeSetter INSTANCE;
- private static JsRegexp NOT_AUTHORIZED_NODE = new JsRegexp(
+ private static RegExp NOT_AUTHORIZED_NODE = RegExp.compile(
"^(?:button|input)$", "i");
public static AttributeSetter getInstance() {
}
}
- private static final JsRegexp BOOLEAN_ATTR_REGEX = new JsRegexp(
+ private static final RegExp BOOLEAN_ATTR_REGEX = RegExp.compile(
"^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$",
"i");
}
}
- protected Object fixValue(String key, Object value) {
+ protected Object fixValue(@SuppressWarnings("unused") String key, Object value) {
return value;
}
import com.google.gwt.dom.client.Node;
import com.google.gwt.query.client.GQuery;
import com.google.gwt.query.client.js.JsNamedArray;
-import com.google.gwt.query.client.js.JsRegexp;
import com.google.gwt.query.client.js.JsUtils;
+import com.google.gwt.regexp.shared.RegExp;
import com.google.gwt.user.client.DOM;
/**
*/
public class DocumentStyleImpl {
- private static final JsRegexp cssNumberRegex = new JsRegexp("^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$", "i");
- private static final JsRegexp sizeRegex = new JsRegexp("^(client|offset|)(width|height)$", "i");
+ private static final RegExp cssNumberRegex = RegExp.compile("^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$", "i");
+ private static final RegExp sizeRegex = RegExp.compile("^(client|offset|)(width|height)$", "i");
/**