public class HTMLInputElement extends FormField
HTMLElement.ProxyDomNode
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE
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
Constructor and Description |
---|
HTMLInputElement()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
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".
|
jsxGet_name, jsxGet_onchange, jsxGet_type, jsxGet_value, jsxSet_name, jsxSet_onchange, jsxSet_value, setDomNode
jsxGet_form
addComponentRequest, clearComponentRequest, compareVersions, createEventHandler, doComponentRequest, fixAttributeName, get, getAlign, getAvailHeight, getAvailWidth, getBoxObject, getBufferDepth, getCh, getChOff, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getDomNodeOrDie, getDomNodeOrNull, getHeight, getJavaEnabled, getParentHTMLElement, getPlatform, getPosX, getPosY, getSystemLanguage, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, isAncestorOfEventTarget, isComponentInstalled, isHomePage, jsxFunction_addBehavior, jsxFunction_blur, jsxFunction_clearAttributes, jsxFunction_click, jsxFunction_contains, jsxFunction_createTextRange, jsxFunction_dispatchEvent, jsxFunction_doScroll, jsxFunction_focus, jsxFunction_getAttributeNode, jsxFunction_getAttributeNodeNS, jsxFunction_getAttributeNS, jsxFunction_getBoundingClientRect, jsxFunction_getClientRects, jsxFunction_getElementsByClassName, jsxFunction_hasAttributeNS, jsxFunction_insertAdjacentElement, jsxFunction_insertAdjacentHTML, jsxFunction_mergeAttributes, jsxFunction_querySelector, jsxFunction_querySelectorAll, jsxFunction_removeAttributeNode, jsxFunction_removeAttributeNS, jsxFunction_removeBehavior, jsxFunction_removeExpression, jsxFunction_removeNode, jsxFunction_scrollIntoView, jsxFunction_setActive, jsxFunction_setAttributeNode, jsxFunction_setAttributeNS, jsxFunction_setExpression, jsxGet_accessKey, jsxGet_all, jsxGet_children, jsxGet_className, jsxGet_clientHeight, jsxGet_clientLeft, jsxGet_clientTop, jsxGet_clientWidth, jsxGet_currentStyle, jsxGet_dir, jsxGet_disabled, jsxGet_document, jsxGet_filters, jsxGet_id, jsxGet_innerHTML, jsxGet_innerText, jsxGet_lang, jsxGet_language, jsxGet_localName, jsxGet_namespaceURI, jsxGet_nodeName, jsxGet_offsetHeight, jsxGet_offsetLeft, jsxGet_offsetParent, jsxGet_offsetTop, jsxGet_offsetWidth, jsxGet_outerHTML, jsxGet_parentElement, jsxGet_prefix, jsxGet_runtimeStyle, jsxGet_scopeName, jsxGet_scrollHeight, jsxGet_scrollLeft, jsxGet_scrollTop, jsxGet_scrollWidth, jsxGet_spellcheck, jsxGet_style, jsxGet_tabIndex, jsxGet_tagUrn, jsxGet_title, jsxGet_uniqueID, jsxSet_accessKey, jsxSet_className, jsxSet_dir, jsxSet_disabled, jsxSet_id, jsxSet_innerHTML, jsxSet_innerText, jsxSet_lang, jsxSet_language, jsxSet_outerHTML, jsxSet_scrollLeft, jsxSet_scrollTop, jsxSet_spellcheck, jsxSet_tabIndex, jsxSet_tagUrn, jsxSet_textContent, jsxSet_title, navigateHomePage, parseHtmlSnippet, readAttributes, setAlign, setCh, setChOff, setColorAttribute, setDefaults, setHomePage, setVAlign, setWidthOrHeight, startDownload, toString
createAttributesObject, jsxFunction_getAttribute, jsxFunction_getElementsByTagName, jsxFunction_getElementsByTagNameNS, jsxFunction_hasAttribute, jsxFunction_removeAttribute, jsxFunction_selectNodes, jsxFunction_selectSingleNode, jsxGet_attributes, jsxGet_tagName, jsxGet_text
jsxFunction_fireEvent, jsxGet_onblur, jsxGet_onclick, jsxGet_oncontextmenu, jsxGet_ondblclick, jsxGet_onerror, jsxGet_onfocus, jsxGet_onfocusin, jsxGet_onfocusout, jsxGet_onkeydown, jsxGet_onkeypress, jsxGet_onkeyup, jsxGet_onmousedown, jsxGet_onmousemove, jsxGet_onmouseout, jsxGet_onmouseover, jsxGet_onmouseup, jsxGet_onpropertychange, jsxGet_onresize, jsxSet_onblur, jsxSet_onclick, jsxSet_oncontextmenu, jsxSet_ondblclick, jsxSet_onerror, jsxSet_onfocus, jsxSet_onfocusin, jsxSet_onfocusout, jsxSet_onkeydown, jsxSet_onkeypress, jsxSet_onkeyup, jsxSet_onmousedown, jsxSet_onmousemove, jsxSet_onmouseout, jsxSet_onmouseover, jsxSet_onmouseup, jsxSet_onpropertychange, jsxSet_onresize
executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getJavaScriptNode, getParent, hasEventHandlers, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_compareDocumentPosition, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_normalize, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_nextSibling, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_ownerDocument, jsxGet_parentNode, jsxGet_previousSibling, jsxGet_textContent, jsxGet_xml, jsxSet_nodeValue, setEventHandler, setEventHandlerProp
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
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 referencejsxFunction_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" propertyCopyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.