com.aspose.html.forms

Class OptionElement



  • public class OptionElement
    extends FormElement<HTMLOptionElement>

    The OptionElement represents a wrapper that is associated with the HTMLOptionElement

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getDisabled()
      The control is unavailable in this context.
      java.lang.String getLabel()
      Option label for use in hierarchical menus.
      boolean getSelected()
      Represents the current state of the corresponding form control, in an interactive user agent.
      java.lang.String getText()
      This attribute represents the text content of this node and its descendants.
      java.lang.String getValue()
      The current form control value.
      void setDisabled(boolean value)
      The control is unavailable in this context.
      void setLabel(java.lang.String value)
      Option label for use in hierarchical menus.
      void setSelected(boolean value)
      Represents the current state of the corresponding form control, in an interactive user agent.
      void setText(java.lang.String value)
      This attribute represents the text content of this node and its descendants.
      void setValue(java.lang.String value)
      The current form control value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.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(java.lang.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 java.lang.String getText()

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

      • setText

        public void setText(java.lang.String value)

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

      • getValue

        public java.lang.String getValue()

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

        Overrides:
        getValue in class FormElementBase
      • setValue

        public void setValue(java.lang.String value)

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

        Overrides:
        setValue in class FormElementBase