Class Placeholder

  • All Implemented Interfaces:
    TagBase, InputAttributable, java.io.Serializable, java.lang.Cloneable


    public class Placeholder
    extends AbstractAttribute
    implements InputAttributable
    placeholder attribute for the element.
    placeholder attribute for input element :-
    A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Placeholder

        public Placeholder​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        sets the value for this attribute
        Parameters:
        value - the value for the attribute.
        Since:
        1.0.0
      • getValue

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0