com.aspose.html

Class HTMLOptionElement

    • Constructor Detail

      • HTMLOptionElement

        public HTMLOptionElement(DOMName name,
                                 Document doc)

        Initializes a new instance of the HTMLOptionElement class.

        Parameters:
        name - The DOM name.
        doc - The document.
    • Method Detail

      • getDefaultSelected

        @DOMNameAttribute(name="defaultSelected")
        public boolean getDefaultSelected()

        Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.

      • setDefaultSelected

        @DOMNameAttribute(name="defaultSelected")
        public void setDefaultSelected(boolean value)

        Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.

      • getIndex

        @DOMNameAttribute(name="index")
        public int getIndex()

        The index of this

         OPTION
         
        in its parent
         SELECT
         
        , starting from 0.
      • getDisabled

        @DOMNameAttribute(name="disabled")
        public boolean getDisabled()

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

      • setDisabled

        @DOMNameAttribute(name="disabled")
        public void setDisabled(boolean value)

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

      • getLabel

        @DOMNameAttribute(name="label")
        public String getLabel()

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

      • setLabel

        @DOMNameAttribute(name="label")
        public void setLabel(String value)

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

      • getSelected

        @DOMNameAttribute(name="selected")
        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

        @DOMNameAttribute(name="selected")
        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.

      • getValue

        @DOMNameAttribute(name="value")
        public String getValue()

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

      • setValue

        @DOMNameAttribute(name="value")
        public void setValue(String value)

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