com.github.gwtbootstrap.client.ui.base
Class PlaceholderHelper

java.lang.Object
  extended by 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

Constructor Summary
PlaceholderHelper()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceholderHelper

public PlaceholderHelper()
Method Detail

setPlaceholer

public void setPlaceholer(Element element,
                          String placeholder)
Set a placeholder attribute (HTML5) to the element.

Parameters:
element - the element be set
placeholder - 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.