com.gargoylesoftware.htmlunit.html
Interface SubmittableElement

All Known Implementing Classes:
HtmlButton, HtmlButtonInput, HtmlCheckBoxInput, HtmlFileInput, HtmlHiddenInput, HtmlImageInput, HtmlInput, HtmlIsIndex, HtmlPasswordInput, HtmlRadioButtonInput, HtmlResetInput, HtmlSelect, HtmlSubmitInput, HtmlTextArea, HtmlTextInput

public interface SubmittableElement

An element that can have it's values sent to the server during a form submit

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Daniel Gredler

Method Summary
 java.lang.String getDefaultValue()
 Returns the default value to use when this element gets reset, if applicable.
 KeyValuePair[] getSubmitKeyValuePairs()
 Return an array of KeyValuePairs that are the values that will be sent back to the server whenever the current form is submitted .
 boolean isDefaultChecked()
 Returns the default checked state to use when this element gets reset, if applicable.
 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).
 void setDefaultChecked(boolean defaultChecked)
 Sets the default checked state to use when this element gets reset, if applicable.
 void setDefaultValue(java.lang.String defaultValue)
 Sets the default value to use when this element gets reset, if applicable.
 

Method Detail

getDefaultValue

java.lang.String getDefaultValue()
Returns the default value to use when this element gets reset, if applicable.

Returns:
the default value to use when this element gets reset, if applicable.

getSubmitKeyValuePairs

KeyValuePair[] getSubmitKeyValuePairs()
Return an array of KeyValuePairs that are the values that will be sent back to the server whenever the current form is submitted .

THIS METHOD IS INTENDED FOR THE USE OF THE FRAMEWORK ONLY AND SHOULD NOT BE USED BY CONSUMERS OF HTMLUNIT. USE AT YOUR OWN RISK.

Returns:
See above

isDefaultChecked

boolean isDefaultChecked()
Returns the default checked state to use when this element gets reset, if applicable.

Returns:
The default checked state to use when this element gets reset, if applicable.

reset

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).


setDefaultChecked

void setDefaultChecked(boolean defaultChecked)
Sets the default checked state to use when this element gets reset, if applicable.

Parameters:
defaultChecked - The default checked state to use when this element gets reset, if applicable.

setDefaultValue

void setDefaultValue(java.lang.String defaultValue)
Sets the default value to use when this element gets reset, if applicable.

Parameters:
defaultValue - The default value to use when this element gets reset, if applicable.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.