com.aspose.html.forms

Class ButtonElement



  • public class ButtonElement
    extends FormElement<HTMLButtonElement>

    The ButtonElement represents a wrapper that is associated with the HTMLButtonElement.

    • Constructor Detail

      • ButtonElement

        public ButtonElement(HTMLButtonElement element)

        Creates a new instance of the input element associated with the HTMLButtonElement

        Parameters:
        element - The HTMLButtonElement.
    • Method Detail

      • getName

        public String getName()

        Represent the name attribute of the Button element.

        Overrides:
        getName in class com.aspose.html.forms.FormElementBase
      • setName

        public void setName(String value)

        Represent the name attribute of the Button element.

        Overrides:
        setName in class com.aspose.html.forms.FormElementBase
      • getId

        public String getId()

        Represents the Id attribute of the Button element.

        Overrides:
        getId in class com.aspose.html.forms.FormElementBase
      • setId

        public void setId(String value)

        Represents the Id attribute of the Button element.

        Overrides:
        setId in class com.aspose.html.forms.FormElementBase
      • getValue

        public String getValue()

        Represents the string value of the button element that is directly mapped to the 'value' attribute.

        Overrides:
        getValue in class com.aspose.html.forms.FormElementBase
      • setValue

        public void setValue(String value)

        Represents the string value of the button element that is directly mapped to the 'value' attribute.

        Overrides:
        setValue in class com.aspose.html.forms.FormElementBase
      • getType

        public int getType()

        Type of the form control.

      • setType

        public void setType(int value)

        Type of the form control.