|
||||||||||
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.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
com.gargoylesoftware.htmlunit.html.FocusableElement
com.gargoylesoftware.htmlunit.html.HtmlInput
com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput
public class HtmlRadioButtonInput
Wrapper for the html element "input"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIterator |
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlInput |
---|
TAG_NAME |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, TAB_INDEX_OUT_OF_BOUNDS |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Constructor Summary | |
---|---|
HtmlRadioButtonInput(HtmlPage page,
Map attributes)
Deprecated. You should not directly construct HtmlRadioButtonInput. |
Method Summary | |
---|---|
String |
asText()
A radio button does not have a textual representation, but we invent one for it because it is useful for testing. |
protected Page |
doClickAction(Page defaultPage)
Override of default clickAction that makes this radio button the selected one when it is clicked |
boolean |
isDefaultChecked()
Returns the default checked state to use when this element gets reset, if applicable. The default implementation returns false; only checkboxes and radio buttons really care what the default checked value is. |
protected boolean |
isStateUpdateFirst()
Return true if the state update should be done before onclick event handling. |
void |
reset()
Return the value of this element to the default value or checked state (usually what it was at the time the page was loaded, unless it has been modified via JavaScript). |
Page |
setChecked(boolean isChecked)
Set the "checked" attribute |
void |
setDefaultChecked(boolean defaultChecked)
Sets the default checked state to use when this element gets reset, if applicable. The default implementation is empty; only checkboxes and radio buttons really care what the default checked value is. |
void |
setDefaultValue(String defaultValue)
Sets the default value to use when this element gets reset, if applicable. Also sets the value attribute when emulating Netscape browsers. Also sets the value to the new default value. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.HtmlInput |
---|
click, getAcceptAttribute, getAccessKeyAttribute, getAlignAttribute, getAltAttribute, getCheckedAttribute, getDefaultValue, getDisabledAttribute, getMaxLengthAttribute, getNameAttribute, getOnBlurAttribute, getOnChangeAttribute, getOnFocusAttribute, getOnSelectAttribute, getReadOnlyAttribute, getSizeAttribute, getSrcAttribute, getSubmitKeyValuePairs, getTabIndexAttribute, getTypeAttribute, getUseMapAttribute, getValueAttribute, isChecked, isDisabled, setDefaultValue, setValueAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
---|
click, click, click, dblClick, dblClick, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisible |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HtmlRadioButtonInput(HtmlPage page, Map attributes)
page
- The page that contains this elementattributes
- the initial attributesMethod Detail |
---|
public void reset()
reset
in interface SubmittableElement
reset
in class HtmlInput
SubmittableElement.reset()
public Page setChecked(boolean isChecked)
setChecked
in class HtmlInput
isChecked
- true if this element is to be selected
public String asText()
asText
in class HtmlInput
protected Page doClickAction(Page defaultPage) throws IOException
doClickAction
in class ClickableElement
defaultPage
- The default page to return if the action does not
load a new page.
IOException
- If an IO error occurredpublic void setDefaultValue(String defaultValue)
setDefaultValue
in interface SubmittableElement
setDefaultValue
in class HtmlInput
defaultValue
- The default value to use when this element gets reset, if applicable.SubmittableElement.setDefaultValue(String)
public void setDefaultChecked(boolean defaultChecked)
setDefaultChecked
in interface SubmittableElement
setDefaultChecked
in class HtmlInput
defaultChecked
- The default checked state to use when this element gets reset, if applicable.SubmittableElement.setDefaultChecked(boolean)
public boolean isDefaultChecked()
isDefaultChecked
in interface SubmittableElement
isDefaultChecked
in class HtmlInput
SubmittableElement.isDefaultChecked()
protected boolean isStateUpdateFirst()
isStateUpdateFirst
in class ClickableElement
ClickableElement.isStateUpdateFirst()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |