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 |
---|---|
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:
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 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
value | 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 |
setLabel(String value)
public final void setLabel(String value)
Get or set label of field.
Parameters:
Parameter | Type | Description |
---|---|---|
value | 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 |
setPlaceholder(String value)
public final void setPlaceholder(String value)
Get or set placeholder of field.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setRequired(boolean value)
public final void setRequired(boolean value)
Get or set value that define field as required.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setValue(String value)
public final void setValue(String value)
Get or set value of field.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |