public class GwtUtil extends Object
JavaScriptUtil.| Modifier | Constructor and Description |
|---|---|
protected |
GwtUtil()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId(com.google.gwt.dom.client.Element element)
This method gets the ID of the given
Element. |
String |
getId(com.google.gwt.user.client.ui.Widget widget)
Shorthand for
getId(widget.getElement()). |
static GwtUtil |
getInstance() |
private static final GwtUtil INSTANCE
public static GwtUtil getInstance()
GwtUtil.Cdi.GET_INSTANCEpublic String getId(com.google.gwt.user.client.ui.Widget widget)
getId(widget.getElement()).widget - is the Widget to get the ID from.Widget. Created if not set.public String getId(com.google.gwt.dom.client.Element element)
Element. If the Element has no ID set,
this method will create a unique ID and assign it to the
given Element.element - is the Element for which the ID is requested.Element. Created if not set.Copyright © 2001–2016 mmm-Team. All rights reserved.