public class ButtonElement extends FormElement<HTMLButtonElement>
The ButtonElement represents a wrapper that is associated with the HTMLButtonElement.
| Constructor and Description |
|---|
ButtonElement(HTMLButtonElement element)
Creates a new instance of the input element associated with the HTMLButtonElement
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Represents the Id attribute of the Button element.
|
java.lang.String |
getName()
Represent the name attribute of the Button element.
|
int |
getType()
Type of the form control.
|
java.lang.String |
getValue()
Represents the string value of the button element that is directly mapped to the 'value' attribute.
|
void |
setId(java.lang.String value)
Represents the Id attribute of the Button element.
|
void |
setName(java.lang.String value)
Represent the name attribute of the Button element.
|
void |
setType(int value)
Type of the form control.
|
void |
setValue(java.lang.String value)
Represents the string value of the button element that is directly mapped to the 'value' attribute.
|
getHtmlElementgetElementTypepublic ButtonElement(HTMLButtonElement element)
Creates a new instance of the input element associated with the HTMLButtonElement
element - The HTMLButtonElement.public java.lang.String getName()
Represent the name attribute of the Button element.
getName in class FormElementBasepublic void setName(java.lang.String value)
Represent the name attribute of the Button element.
setName in class FormElementBasepublic java.lang.String getId()
Represents the Id attribute of the Button element.
getId in class FormElementBasepublic void setId(java.lang.String value)
Represents the Id attribute of the Button element.
setId in class FormElementBasepublic java.lang.String getValue()
Represents the string value of the button element that is directly mapped to the 'value' attribute.
getValue in class FormElementBasepublic void setValue(java.lang.String value)
Represents the string value of the button element that is directly mapped to the 'value' attribute.
setValue in class FormElementBasepublic int getType()
Type of the form control.
public void setType(int value)
Type of the form control.