|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.DomElement
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.HtmlInput
com.gargoylesoftware.htmlunit.html.HtmlTextInput
public class HtmlTextInput
Wrapper for the HTML element "input" with type="text".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.ChildElementsIterator |
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator<T extends DomNode> |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlInput |
---|
TAG_NAME |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
TAB_INDEX_OUT_OF_BOUNDS |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
AS_TEXT_BLANK, AS_TEXT_BLOCK_SEPARATOR, AS_TEXT_NEW_LINE, AS_TEXT_TAB, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Method Summary | |
---|---|
protected Object |
clone()
|
protected void |
doType(char c,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Performs the effective type action, called after the keyPress event and before the keyUp event. |
void |
focus()
Sets the focus on this element. |
String |
getSelectedText()
|
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
String |
getText()
|
protected boolean |
isSubmittableByEnter()
Returns true if clicking Enter (ASCII 10, or '\n') should submit the enclosed form (if any). |
void |
select()
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String attributeValue)
Sets the value of the specified attribute. |
void |
setSelectionEnd(int selectionEnd)
|
void |
setSelectionStart(int selectionStart)
|
void |
setText(String text)
|
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomElement |
---|
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesMap, getElementsByTagName, getElementsByTagNameNS, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isEmptyXmlTagExpanded, namespaces, printOpeningTagContentAsXml, printXml, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput |
---|
getPage |
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 |
Method Detail |
---|
protected void doType(char c, boolean shiftKey, boolean ctrlKey, boolean altKey)
doType
in class HtmlElement
c
- the character you with to simulate typingshiftKey
- true if SHIFT is pressed during the typingctrlKey
- true if CTRL is pressed during the typingaltKey
- true if ALT is pressed during the typingprotected boolean isSubmittableByEnter()
isSubmittableByEnter
in class HtmlElement
public void select()
select
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public String getSelectedText()
getSelectedText
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public String getText()
getText
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public void setText(String text)
setText
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public int getSelectionStart()
getSelectionStart
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public void setSelectionStart(int selectionStart)
setSelectionStart
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public int getSelectionEnd()
getSelectionEnd
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public void setSelectionEnd(int selectionEnd)
setSelectionEnd
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
public void setAttributeNS(String namespaceURI, String qualifiedName, String attributeValue)
setAttributeNS
in interface Element
setAttributeNS
in class HtmlInput
namespaceURI
- the URI that identifies an XML namespacequalifiedName
- the qualified name of the attributeattributeValue
- the value of the attributepublic void focus()
focus
in interface com.gargoylesoftware.htmlunit.html.impl.SelectableTextInput
focus
in class HtmlElement
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |