public class PlaceholderHelper extends Object
HasPlaceholder
interface.Constructor and Description |
---|
PlaceholderHelper() |
Modifier and Type | Method and Description |
---|---|
String |
getPlaceholder(Element element)
Get a placeholder attribute (HTML5) from the element.
|
void |
setPlaceholer(Element element,
String placeholder)
Set a placeholder attribute (HTML5) to the element.
|
public PlaceholderHelper()
public void setPlaceholer(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(Element element)
If the element don't have placeholder attribute,This return empty string.
element
- the elementCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.