com.aspose.html.forms

Class OptionElement



  • public class OptionElement
    extends FormElement<HTMLOptionElement>

    The OptionElement represents a wrapper that is associated with the HTMLOptionElement

    • Constructor Detail

      • OptionElement

        public OptionElement(HTMLOptionElement element)

        Initializes a new instance of the OptionElement class.

        Parameters:
        element - The element.
    • Method Detail

      • getDisabled

        public boolean getDisabled()

        The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.

        Value: true if disabled; otherwise, false.
      • setDisabled

        public void setDisabled(boolean value)

        The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.

        Value: true if disabled; otherwise, false.
      • getLabel

        public String getLabel()

        Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.

        Value: The label value.
      • setLabel

        public void setLabel(String value)

        Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.

        Value: The label value.
      • getSelected

        public boolean getSelected()

        Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.

      • setSelected

        public void setSelected(boolean value)

        Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.

      • getText

        public String getText()

        This attribute represents the text content of this node and its descendants.

      • setText

        public void setText(String value)

        This attribute represents the text content of this node and its descendants.

      • getValue

        public String getValue()

        The current form control value. See the value attribute definition in HTML 4.01.

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

        public void setValue(String value)

        The current form control value. See the value attribute definition in HTML 4.01.

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