|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
com.gargoylesoftware.htmlunit.javascript.host.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.Option
public class Option
The javascript object that represents an option.
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.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 |
---|
public Option()
Method Detail |
---|
public void jsConstructor(java.lang.String newText, java.lang.String newValue, boolean defaultSelected, boolean selected)
newText
- The textnewValue
- The valuedefaultSelected
- Whether the option is initially selectedselected
- The current selection state of the optionpublic boolean jsxGet_defaultSelected()
public java.lang.String jsxGet_label()
public boolean jsxGet_selected()
public java.lang.String jsxGet_text()
public java.lang.String jsxGet_value()
public void jsxSet_label(java.lang.String label)
label
- The new label propertypublic void jsxSet_selected(boolean selected)
selected
- The new selected propertypublic void jsxSet_text(java.lang.String newText)
newText
- The text propertypublic void jsxSet_value(java.lang.String newValue)
newValue
- The value property
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |