public class FormField extends Object
Describe one field of form.
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Get or set Id of field.
|
String |
getInputType()
Get or set input type of field.
|
String |
getLabel()
Get or set label of field.
|
String |
getName()
Get or set name of field.
|
String |
getPlaceholder()
Get or set placeholder of field.
|
String |
getValue()
Get or set value of field.
|
boolean |
isRequired()
Get or set value that define field as required.
|
void |
setId(String value)
Get or set Id of field.
|
void |
setInputType(String value)
Get or set input type of field.
|
void |
setLabel(String value)
Get or set label of field.
|
void |
setName(String value)
Get or set name of field.
|
void |
setPlaceholder(String value)
Get or set placeholder of field.
|
void |
setRequired(boolean value)
Get or set value that define field as required.
|
void |
setValue(String value)
Get or set value of field.
|
String |
toAmpHtml()
Represents amp html version of field.
|
String |
toHtml()
Represents html version of field.
|
public FormField()
Create instance of form field.
public FormField(String label)
Create instance of form field.
label
- label of fieldpublic final String getLabel()
Get or set label of field.
public final void setLabel(String value)
Get or set label of field.
public final String getInputType()
Get or set input type of field.
public final void setInputType(String value)
Get or set input type of field.
public final String getName()
Get or set name of field.
public final void setName(String value)
Get or set name of field.
public final String getId()
Get or set Id of field.
public final void setId(String value)
Get or set Id of field.
public final String getPlaceholder()
Get or set placeholder of field.
public final void setPlaceholder(String value)
Get or set placeholder of field.
public final String getValue()
Get or set value of field.
public final void setValue(String value)
Get or set value of field.
public final boolean isRequired()
Get or set value that define field as required.
public final void setRequired(boolean value)
Get or set value that define field as required.
public String toAmpHtml()
Represents amp html version of field.
public String toHtml()
Represents html version of field.