FormField

Inheritance: java.lang.Object

public class FormField

Describe one field of form.

Constructors

ConstructorDescription
FormField()Create instance of form field.
FormField(String label)Create instance of form field.
FormField(String label, String inputType)Create instance of form field.

Methods

MethodDescription
equals(Object arg0)
getClass()
getId()Get or set Id of field.
getInputType()Get or set input type of field.
getLabel()Get or set label of field.
getName()Get or set name of field.
getPlaceholder()Get or set placeholder of field.
getValue()Get or set value of field.
hashCode()
isRequired()Get or set value that define field as required.
notify()
notifyAll()
setId(String value)Get or set Id of field.
setInputType(String value)Get or set input type of field.
setLabel(String value)Get or set label of field.
setName(String value)Get or set name of field.
setPlaceholder(String value)Get or set placeholder of field.
setRequired(boolean value)Get or set value that define field as required.
setValue(String value)Get or set value of field.
toAmpHtml()Represents amp html version of field.
toHtml()Represents html version of field.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FormField()

public FormField()

Create instance of form field.

FormField(String label)

public FormField(String label)

Create instance of form field.

Parameters:

ParameterTypeDescription
labeljava.lang.Stringlabel of field

FormField(String label, String inputType)

public FormField(String label, String inputType)

Create instance of form field.

Parameters:

ParameterTypeDescription
labeljava.lang.Stringlabel of field
inputTypejava.lang.Stringinput type of field

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getId()

public final String getId()

Get or set Id of field.

Returns: java.lang.String

getInputType()

public final String getInputType()

Get or set input type of field.

Returns: java.lang.String

getLabel()

public final String getLabel()

Get or set label of field.

Returns: java.lang.String

getName()

public final String getName()

Get or set name of field.

Returns: java.lang.String

getPlaceholder()

public final String getPlaceholder()

Get or set placeholder of field.

Returns: java.lang.String

getValue()

public final String getValue()

Get or set value of field.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

isRequired()

public final boolean isRequired()

Get or set value that define field as required.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setId(String value)

public final void setId(String value)

Get or set Id of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setInputType(String value)

public final void setInputType(String value)

Get or set input type of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setLabel(String value)

public final void setLabel(String value)

Get or set label of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setName(String value)

public final void setName(String value)

Get or set name of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPlaceholder(String value)

public final void setPlaceholder(String value)

Get or set placeholder of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setRequired(boolean value)

public final void setRequired(boolean value)

Get or set value that define field as required.

Parameters:

ParameterTypeDescription
valueboolean

setValue(String value)

public final void setValue(String value)

Get or set value of field.

Parameters:

ParameterTypeDescription
valuejava.lang.String

toAmpHtml()

public String toAmpHtml()

Represents amp html version of field.

Returns: java.lang.String -

toHtml()

public String toHtml()

Represents html version of field.

Returns: java.lang.String -

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int