com.github.gwtbootstrap.client.ui.base
Class PlaceholderHelper
java.lang.Object
com.github.gwtbootstrap.client.ui.base.PlaceholderHelper
public class PlaceholderHelper
- extends Object
The helper class for HasPlaceholder
interface.
- Since:
- 2.0.4.0
- Author:
- ohashi keisuke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlaceholderHelper
public PlaceholderHelper()
setPlaceholer
public void setPlaceholer(Element element,
String placeholder)
- Set a placeholder attribute (HTML5) to the element.
- Parameters:
element
- the element be setplaceholder
- the String to show. Use a empty string or null to remove the attribute.
getPlaceholder
public String getPlaceholder(Element element)
- Get a placeholder attribute (HTML5) from the element.
If the element don't have placeholder attribute,This return empty string.
- Parameters:
element
- the element
- Returns:
- placeholder attribute.
Copyright © 2012 gwtbootstrap. All Rights Reserved.