FormField

Inheritance: java.lang.Object

public class FormField

Describe one field of form.

Constructors

Constructor Description
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

Method Description
getLabel() Get or set label of field.
setLabel(String value) Get or set label of field.
getInputType() Get or set input type of field.
setInputType(String value) Get or set input type of field.
getName() Get or set name of field.
setName(String value) Get or set name of field.
getId() Get or set Id of field.
setId(String value) Get or set Id of field.
getPlaceholder() Get or set placeholder of field.
setPlaceholder(String value) Get or set placeholder of field.
getValue() Get or set value of field.
setValue(String value) Get or set value of field.
isRequired() Get or set value that define field as required.
setRequired(boolean value) Get or set value that define field as required.
toAmpHtml() Represents amp html version of field.
toHtml() Represents html version of field.

FormField()

public FormField()

Create instance of form field.

FormField(String label)

public FormField(String label)

Create instance of form field.

Parameters:

Parameter Type Description
label java.lang.String label of field

FormField(String label, String inputType)

public FormField(String label, String inputType)

Create instance of form field.

Parameters:

Parameter Type Description
label java.lang.String label of field
inputType java.lang.String input type of field

getLabel()

public final String getLabel()

Get or set label of field.

Returns: java.lang.String

setLabel(String value)

public final void setLabel(String value)

Get or set label of field.

Parameters:

Parameter Type Description
value java.lang.String

getInputType()

public final String getInputType()

Get or set input type of field.

Returns: java.lang.String

setInputType(String value)

public final void setInputType(String value)

Get or set input type of field.

Parameters:

Parameter Type Description
value java.lang.String

getName()

public final String getName()

Get or set name of field.

Returns: java.lang.String

setName(String value)

public final void setName(String value)

Get or set name of field.

Parameters:

Parameter Type Description
value java.lang.String

getId()

public final String getId()

Get or set Id of field.

Returns: java.lang.String

setId(String value)

public final void setId(String value)

Get or set Id of field.

Parameters:

Parameter Type Description
value java.lang.String

getPlaceholder()

public final String getPlaceholder()

Get or set placeholder of field.

Returns: java.lang.String

setPlaceholder(String value)

public final void setPlaceholder(String value)

Get or set placeholder of field.

Parameters:

Parameter Type Description
value java.lang.String

getValue()

public final String getValue()

Get or set value of field.

Returns: java.lang.String

setValue(String value)

public final void setValue(String value)

Get or set value of field.

Parameters:

Parameter Type Description
value java.lang.String

isRequired()

public final boolean isRequired()

Get or set value that define field as required.

Returns: boolean

setRequired(boolean value)

public final void setRequired(boolean value)

Get or set value that define field as required.

Parameters:

Parameter Type Description
value boolean

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 -