|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.Node
com.gargoylesoftware.htmlunit.javascript.host.EventNode
com.gargoylesoftware.htmlunit.javascript.host.Element
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.FormChild
com.gargoylesoftware.htmlunit.javascript.host.FormField
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLInputElement
public class HTMLInputElement
The JavaScript object for form input elements (html tag <input ...>).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
---|
HTMLElement.ProxyDomNode |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
---|
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE |
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
HTMLInputElement()
Creates an instance. |
Method Summary | |
---|---|
protected HtmlInput |
getHtmlInputOrDie()
Commodity for (HtmlInput) getDomNodeOrDie() . |
protected boolean |
isAttributeName(String name)
Indicates if this is the name of a well defined attribute that can be access as property. |
void |
jsConstructor()
JavaScript constructor. |
void |
jsxFunction_select()
Select this element. |
void |
jsxFunction_setAttribute(String name,
String value)
Uses jsxSet_type(String) if attribute's name is type to
replace DOM node as well as long as we have subclasses of HtmlInput . |
void |
jsxFunction_setSelectionRange(int start,
int end)
Sets the selected portion of this input element. |
String |
jsxGet_align()
Returns the value of the "align" property. |
String |
jsxGet_alt()
Returns the value of the "alt" property. |
String |
jsxGet_border()
Gets the "border" attribute. |
boolean |
jsxGet_checked()
Returns the value of the checked property. |
boolean |
jsxGet_defaultChecked()
Returns the input's default checked value, used if the containing form gets reset. |
String |
jsxGet_defaultValue()
Returns the input's default value, used if the containing form gets reset. |
int |
jsxGet_maxLength()
Gets the max length. |
boolean |
jsxGet_readOnly()
Gets the value of "readOnly" attribute. |
int |
jsxGet_selectionEnd()
Gets the value of "selectionEnd" attribute. |
int |
jsxGet_selectionStart()
Gets the value of "selectionStart" attribute. |
int |
jsxGet_textLength()
Gets the value of "textLength" attribute. |
void |
jsxSet_align(String align)
Sets the value of the "align" property. |
void |
jsxSet_alt(String alt)
Returns the value of the "alt" property. |
void |
jsxSet_border(String border)
Sets the "border" attribute. |
void |
jsxSet_checked(boolean checked)
Sets the checked property. |
void |
jsxSet_defaultChecked(boolean defaultChecked)
Sets the input's default checked value, used if the containing form gets reset. |
void |
jsxSet_defaultValue(String defaultValue)
Sets the input's default value, used if the containing form gets reset. |
void |
jsxSet_maxLength(int length)
Sets the value of "maxLength" attribute. |
void |
jsxSet_readOnly(boolean readOnly)
Sets the value of "readOnly" attribute. |
void |
jsxSet_selectionEnd(int end)
Sets the value of "selectionEnd" attribute. |
void |
jsxSet_selectionStart(int start)
Sets the value of "selectionStart" attribute. |
void |
jsxSet_type(String newType)
Sets the value of the attribute "type". |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FormField |
---|
jsxGet_name, jsxGet_onchange, jsxGet_type, jsxGet_value, jsxSet_name, jsxSet_onchange, jsxSet_value, setDomNode |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FormChild |
---|
jsxGet_form |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Element |
---|
createAttributesObject, jsxFunction_getAttribute, jsxFunction_getElementsByTagNameNS, jsxFunction_hasAttribute, jsxFunction_removeAttribute, jsxFunction_selectNodes, jsxFunction_selectSingleNode, jsxGet_attributes, jsxGet_tagName, jsxGet_text |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement |
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public HTMLInputElement()
Method Detail |
---|
public void jsConstructor()
public void jsxSet_type(String newType)
newType
- the new type to setpublic void jsxSet_checked(boolean checked)
checked
- True if this input should have the "checked" attribute setprotected HtmlInput getHtmlInputOrDie()
(HtmlInput) getDomNodeOrDie()
.
public boolean jsxGet_checked()
public void jsxFunction_select()
public void jsxFunction_setAttribute(String name, String value)
jsxSet_type(String)
if attribute's name is type to
replace DOM node as well as long as we have subclasses of HtmlInput
.
Sets an attribute.
See also
the DOM reference
jsxFunction_setAttribute
in class HTMLElement
name
- Name of the attribute to setvalue
- Value to set the attribute topublic String jsxGet_defaultValue()
public void jsxSet_defaultValue(String defaultValue)
defaultValue
- the input's default value, used if the containing form gets resetpublic boolean jsxGet_defaultChecked()
public void jsxSet_defaultChecked(boolean defaultChecked)
defaultChecked
- the input's default checked value, used if the containing form gets resetpublic int jsxGet_textLength()
public int jsxGet_selectionStart()
public void jsxSet_selectionStart(int start)
start
- selection startpublic int jsxGet_selectionEnd()
public void jsxSet_selectionEnd(int end)
end
- selection endprotected boolean isAttributeName(String name)
isAttributeName
in class HTMLElement
name
- the name (case sensitive!)
false
if no standard attribute exists with this namepublic int jsxGet_maxLength()
public void jsxSet_maxLength(int length)
length
- the new valuepublic boolean jsxGet_readOnly()
public void jsxSet_readOnly(boolean readOnly)
readOnly
- the new valuepublic void jsxFunction_setSelectionRange(int start, int end)
start
- the index of the first character to selectend
- the index of the character after the selectionpublic String jsxGet_alt()
public void jsxSet_alt(String alt)
alt
- the valuepublic String jsxGet_border()
public void jsxSet_border(String border)
border
- the "border" attributepublic String jsxGet_align()
public void jsxSet_align(String align)
align
- the value of the "align" property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |