com.gargoylesoftware.htmlunit.javascript.host
Class Option

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
              extended by com.gargoylesoftware.htmlunit.javascript.host.HTMLElement
                  extended by com.gargoylesoftware.htmlunit.javascript.host.Option
All Implemented Interfaces:
ScriptableWithFallbackGetter, java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class Option
extends HTMLElement

The javascript object that represents an option.

Version:
$Revision: 1.3 $
Author:
Mike Bowler, David K. Taylor, Chris Erskine, Marc Guillemot, Ahmed Ashour
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Option()
 Create an instance.
 
Method Summary
 void jsConstructor(java.lang.String newText, java.lang.String newValue, boolean defaultSelected, boolean selected)
 Javascript constructor.
 boolean jsxGet_defaultSelected()
 Return the value of the "defaultSelected" property
 java.lang.String jsxGet_label()
 Return the value of the "label" property
 boolean jsxGet_selected()
 Return the value of the "selected" property
 java.lang.String jsxGet_text()
 Return the value of the "text" property
 java.lang.String jsxGet_value()
 Return the value of the "value" property
 void jsxSet_label(java.lang.String label)
 Set the value of the "label" property
 void jsxSet_selected(boolean selected)
 Set the value of the "selected" property
 void jsxSet_text(java.lang.String newText)
 Set the value of the "text" property
 void jsxSet_value(java.lang.String newValue)
 Set the value of the "value" property
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.HTMLElement
addComponentRequest, clearComponentRequest, compareVersions, doComponentRequest, getAvailHeight, getAvailWidth, getBufferDepth, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getHeight, getJavaEnabled, getPlatform, getSystemLanguage, getUserLanguage, getWidth, getWithFallback, isComponentInstalled, isHomePage, jsxFunction_addBehavior, jsxFunction_getAttribute, jsxFunction_getAttributeNode, jsxFunction_getBoundingClientRect, jsxFunction_getClientRects, jsxFunction_getElementsByTagName, jsxFunction_insertAdjacentElement, jsxFunction_insertAdjacentHTML, jsxFunction_removeAttribute, jsxFunction_removeBehavior, jsxFunction_scrollIntoView, jsxFunction_setAttribute, jsxFunction_setAttributeNode, jsxGet_all, jsxGet_children, jsxGet_className, jsxGet_currentStyle, jsxGet_disabled, jsxGet_id, jsxGet_innerHTML, jsxGet_innerText, jsxGet_localName, jsxGet_namespaceURI, jsxGet_offsetHeight, jsxGet_offsetLeft, jsxGet_offsetParent, jsxGet_offsetTop, jsxGet_offsetWidth, jsxGet_onblur, jsxGet_onclick, jsxGet_oncontextmenu, jsxGet_ondblclick, jsxGet_onfocus, jsxGet_onkeydown, jsxGet_onkeypress, jsxGet_onkeyup, jsxGet_onmousedown, jsxGet_onmousemove, jsxGet_onmouseout, jsxGet_onmouseover, jsxGet_onmouseup, jsxGet_onresize, jsxGet_outerHTML, jsxGet_ownerDocument, jsxGet_parentElement, jsxGet_prefix, jsxGet_runtimeStyle, jsxGet_scrollHeight, jsxGet_scrollLeft, jsxGet_scrollTop, jsxGet_scrollWidth, jsxGet_style, jsxGet_tagName, jsxGet_title, jsxSet_className, jsxSet_disabled, jsxSet_id, jsxSet_innerHTML, jsxSet_innerText, jsxSet_onblur, jsxSet_onclick, jsxSet_oncontextmenu, jsxSet_ondblclick, jsxSet_onfocus, jsxSet_onkeydown, jsxSet_onkeypress, jsxSet_onkeyup, jsxSet_onmousedown, jsxSet_onmousemove, jsxSet_onmouseout, jsxSet_onmouseover, jsxSet_onmouseup, jsxSet_onresize, jsxSet_outerHTML, jsxSet_scrollLeft, jsxSet_scrollTop, jsxSet_title, navigateHomePage, setDomNode, setHomePage, startDownload, toString
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
executeEvent, fireEvent, getEventHandler, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_parentNode, jsxGet_previousSibling, jsxSet_nodeValue, setEventHandler
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor, setHtmlElement
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mozilla.javascript.Scriptable
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype
 

Constructor Detail

Option

public Option()
Create an instance.

Method Detail

jsConstructor

public void jsConstructor(java.lang.String newText,
                          java.lang.String newValue,
                          boolean defaultSelected,
                          boolean selected)
Javascript constructor. This must be declared in every javascript file because the rhino engine won't walk up the hierarchy looking for constructors.

Parameters:
newText - The text
newValue - The value
defaultSelected - Whether the option is initially selected
selected - The current selection state of the option

jsxGet_defaultSelected

public boolean jsxGet_defaultSelected()
Return the value of the "defaultSelected" property

Returns:
The text property

jsxGet_label

public java.lang.String jsxGet_label()
Return the value of the "label" property

Returns:
The label property

jsxGet_selected

public boolean jsxGet_selected()
Return the value of the "selected" property

Returns:
The text property

jsxGet_text

public java.lang.String jsxGet_text()
Return the value of the "text" property

Returns:
The text property

jsxGet_value

public java.lang.String jsxGet_value()
Return the value of the "value" property

Returns:
The value property

jsxSet_label

public void jsxSet_label(java.lang.String label)
Set the value of the "label" property

Parameters:
label - The new label property

jsxSet_selected

public void jsxSet_selected(boolean selected)
Set the value of the "selected" property

Parameters:
selected - The new selected property

jsxSet_text

public void jsxSet_text(java.lang.String newText)
Set the value of the "text" property

Parameters:
newText - The text property

jsxSet_value

public void jsxSet_value(java.lang.String newValue)
Set the value of the "value" property

Parameters:
newValue - The value property


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.