org.lobobrowser.html.domimpl
Class HTMLBaseInputElement

java.lang.Object
  extended by org.lobobrowser.js.AbstractScriptableDelegate
      extended by org.lobobrowser.html.domimpl.NodeImpl
          extended by org.lobobrowser.html.domimpl.ElementImpl
              extended by org.lobobrowser.html.domimpl.HTMLElementImpl
                  extended by org.lobobrowser.html.domimpl.HTMLAbstractUIElement
                      extended by org.lobobrowser.html.domimpl.HTMLBaseInputElement
All Implemented Interfaces:
ModelNode, org.lobobrowser.html.style.CSS2PropertiesContext, org.lobobrowser.js.ScriptableDelegate, org.w3c.dom.Element, org.w3c.dom.html2.HTMLElement, org.w3c.dom.Node
Direct Known Subclasses:
HTMLButtonElementImpl, HTMLInputElementImpl, HTMLSelectElementImpl, HTMLTextAreaElementImpl

public abstract class HTMLBaseInputElement
extends HTMLAbstractUIElement


Field Summary
protected  java.lang.String deferredValue
           
protected  InputContext inputContext
           
 
Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl
attributes
 
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
 
Fields inherited from interface org.w3c.dom.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
 
Constructor Summary
HTMLBaseInputElement(java.lang.String name)
           
 
Method Summary
 void addImageListener(ImageListener listener)
          Adds a listener of image loading events.
protected  void assignAttributeField(java.lang.String normalName, java.lang.String value)
           
 void blur()
           
 void focus()
           
 java.lang.String getAccept()
           
 java.lang.String getAccessKey()
           
 java.lang.String getAlign()
           
 java.lang.String getAlt()
           
 java.lang.String getDefaultValue()
           
 boolean getDisabled()
           
protected  java.io.File getFileValue()
           
 org.w3c.dom.html2.HTMLFormElement getForm()
           
 java.awt.Image getImage()
           
 java.lang.String getName()
           
 org.mozilla.javascript.Function getOnload()
           
 boolean getReadOnly()
           
 int getTabIndex()
           
 java.lang.String getValue()
           
 void removeImageListener(ImageListener listener)
           
 void resetForm()
           
 void select()
           
 void setAccept(java.lang.String accept)
           
 void setAccessKey(java.lang.String accessKey)
           
 void setAlign(java.lang.String align)
           
 void setAlt(java.lang.String alt)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setDisabled(boolean disabled)
           
 void setInputContext(InputContext ic)
           
 void setName(java.lang.String name)
           
 void setOnload(org.mozilla.javascript.Function onload)
           
 void setReadOnly(boolean readOnly)
           
 void setTabIndex(int tabIndex)
           
 void setValue(java.lang.String value)
           
 void submitForm(FormInput[] extraFormInputs)
           
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement
getEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl
addStyleSheetDeclarations, appendOuterHTMLImpl, createDefaultStyleSheet, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getComputedStyle, getCssInputSourceForDecl, getCurrentStyle, getDocumentBaseURI, getFormInputs, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParent, getParentStyle, getParentWithClass, getParentWithId, getPreceedingSibling, getPreceedingSiblingElement, getPreceedingSiblingWithClass, getPreceedingSiblingWithId, getPseudoNames, getStyle, informInvalid, informInvalidAttibute, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn
 
Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl
createSimilarNode, equalAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, htmlEncodeChildText, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeImpl, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDir, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerText, setLang, setNodeValue, setTitle
 
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informDocumentInvalid, informExternalScriptLoading, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setTextContent, setUINode, setUserData
 
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.html2.HTMLElement
getDir, getId, getLang, getTitle, setDir, setId, setLang, setTitle
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.lobobrowser.html.style.CSS2PropertiesContext
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
 

Field Detail

inputContext

protected InputContext inputContext

deferredValue

protected java.lang.String deferredValue
Constructor Detail

HTMLBaseInputElement

public HTMLBaseInputElement(java.lang.String name)
Method Detail

setInputContext

public void setInputContext(InputContext ic)

getDefaultValue

public java.lang.String getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

getForm

public org.w3c.dom.html2.HTMLFormElement getForm()

submitForm

public void submitForm(FormInput[] extraFormInputs)

resetForm

public void resetForm()

getAccept

public java.lang.String getAccept()

setAccept

public void setAccept(java.lang.String accept)

getAccessKey

public java.lang.String getAccessKey()

setAccessKey

public void setAccessKey(java.lang.String accessKey)

getAlign

public java.lang.String getAlign()

setAlign

public void setAlign(java.lang.String align)

getAlt

public java.lang.String getAlt()

setAlt

public void setAlt(java.lang.String alt)

getDisabled

public boolean getDisabled()

setDisabled

public void setDisabled(boolean disabled)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getReadOnly

public boolean getReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

getTabIndex

public int getTabIndex()

setTabIndex

public void setTabIndex(int tabIndex)

getValue

public java.lang.String getValue()

getFileValue

protected java.io.File getFileValue()

setValue

public void setValue(java.lang.String value)

blur

public void blur()
Overrides:
blur in class HTMLAbstractUIElement

focus

public void focus()
Overrides:
focus in class HTMLAbstractUIElement

select

public void select()

assignAttributeField

protected void assignAttributeField(java.lang.String normalName,
                                    java.lang.String value)
Overrides:
assignAttributeField in class HTMLAbstractUIElement

getOnload

public org.mozilla.javascript.Function getOnload()

setOnload

public void setOnload(org.mozilla.javascript.Function onload)

getImage

public final java.awt.Image getImage()

addImageListener

public void addImageListener(ImageListener listener)
Adds a listener of image loading events. The listener gets called right away if there's already an image.

Parameters:
listener -

removeImageListener

public void removeImageListener(ImageListener listener)


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Cobra Project Home]