public class PlaceholderHelper extends Object
HasPlaceholder interface.| Constructor and Description |
|---|
PlaceholderHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPlaceholder(com.google.gwt.dom.client.Element element)
Get a placeholder attribute (HTML5) from the element.
|
void |
setPlaceholer(com.google.gwt.dom.client.Element element,
String placeholder)
Set a placeholder attribute (HTML5) to the element.
|
public void setPlaceholer(com.google.gwt.dom.client.Element element,
String placeholder)
element - the element be setplaceholder - the String to show. Use a empty string or null to remove the attribute.public String getPlaceholder(com.google.gwt.dom.client.Element element)
If the element don't have placeholder attribute,This return empty string.
element - the elementCopyright © 2016. All rights reserved.