All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3c.dom.html.HTMLOptionElement Maven / Gradle / Ivy

The newest version!
// Copyright (c) 1998 by W3C
//
// DOM is a trademark of W3C
// The DOM level 1 specification, from which this
// source is derived, is copyright by W3C.
// See: http://www.w3.org/TR/REC-DOM-Level-1/
//

package org.w3c.dom.html;

import org.w3c.dom.*;

/**

  

A selectable choice. See the OPTION element definition in HTML 4.0.


Property Summary
 form getForm

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

 defaultSelected getDefaultSelected setDefaultSelected

Stores the initial value of the selected attribute.

 text getText

The text contained within the option element.

 index getIndex setIndex

The index of this OPTION in its parent SELECT.

 disabled getDisabled setDisabled

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

 label getLabel setLabel

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

 selected getSelected

Means that this option is initially selected. See the selected attribute definition in HTML 4.0.

 value getValue setValue

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

  */ public interface HTMLOptionElement extends HTMLElement { /** * Returns the value of the form property. */ HTMLFormElement getForm (); /** Assigns the value of the defaultSelected property. */ void setDefaultSelected (boolean defaultSelected); /** * Returns the value of the defaultSelected property. */ boolean getDefaultSelected (); /** * Returns the value of the text property. */ String getText (); /** Assigns the value of the index property. */ void setIndex (int index); /** * Returns the value of the index property. */ int getIndex (); /** Assigns the value of the disabled property. */ void setDisabled (boolean disabled); /** * Returns the value of the disabled property. */ boolean getDisabled (); /** Assigns the value of the label property. */ void setLabel (String label); /** * Returns the value of the label property. */ String getLabel (); /** * Returns the value of the selected property. */ boolean getSelected (); /** Assigns the value of the value property. */ void setValue (String value); /** * Returns the value of the value property. */ String getValue (); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy