This method will be called if there either wasn't an onclick handler, or if * there was one, but the result of that handler wasn't false. This is the default * behavior of clicking the element.
* *
The default implementation returns the current page. Subclasses requiring different * behavior (like {@link HtmlSubmitInput}) will override this method.
* * @param defaultPage the default page to return if the action does not load a new page * @return the page that is currently loaded after execution of this method * @throws IOException if an IO error occurs */ protected Page doClickAction(final Page defaultPage) throws IOException { return defaultPage; } /** * Returns the value of the attribute "lang". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "lang" or an empty string if that attribute isn't defined */ public final String getLangAttribute() { return getAttributeValue("lang"); } /** * Returns the value of the attribute "xml:lang". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "xml:lang" or an empty string if that attribute isn't defined */ public final String getXmlLangAttribute() { return getAttributeValue("xml:lang"); } /** * Returns the value of the attribute "dir". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "dir" or an empty string if that attribute isn't defined */ public final String getTextDirectionAttribute() { return getAttributeValue("dir"); } /** * Returns the value of the attribute "onclick". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onclick" or an empty string if that attribute isn't defined */ public final String getOnClickAttribute() { return getAttributeValue("onclick"); } /** * Returns the value of the attribute "ondblclick". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "ondblclick" or an empty string if that attribute isn't defined */ public final String getOnDblClickAttribute() { return getAttributeValue("ondblclick"); } /** * Returns the value of the attribute "onmousedown". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onmousedown" or an empty string if that attribute isn't defined */ public final String getOnMouseDownAttribute() { return getAttributeValue("onmousedown"); } /** * Returns the value of the attribute "onmouseup". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onmouseup" or an empty string if that attribute isn't defined */ public final String getOnMouseUpAttribute() { return getAttributeValue("onmouseup"); } /** * Returns the value of the attribute "onmouseover". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onmouseover" or an empty string if that attribute isn't defined */ public final String getOnMouseOverAttribute() { return getAttributeValue("onmouseover"); } /** * Returns the value of the attribute "onmousemove". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onmousemove" or an empty string if that attribute isn't defined */ public final String getOnMouseMoveAttribute() { return getAttributeValue("onmousemove"); } /** * Returns the value of the attribute "onmouseout". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onmouseout" or an empty string if that attribute isn't defined */ public final String getOnMouseOutAttribute() { return getAttributeValue("onmouseout"); } /** * Returns the value of the attribute "onkeypress". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onkeypress" or an empty string if that attribute isn't defined */ public final String getOnKeyPressAttribute() { return getAttributeValue("onkeypress"); } /** * Returns the value of the attribute "onkeydown". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onkeydown" or an empty string if that attribute isn't defined */ public final String getOnKeyDownAttribute() { return getAttributeValue("onkeydown"); } /** * Returns the value of the attribute "onkeyup". Refer to the * HTML 4.01 * documentation for details on the use of this attribute. * * @return the value of the attribute "onkeyup" or an empty string if that attribute isn't defined */ public final String getOnKeyUpAttribute() { return getAttributeValue("onkeyup"); } /** * Returns true if state updates should be done before onclick event handling. This method * returns false by default, and is expected to be overridden to return true by * derived classes like {@link HtmlCheckBoxInput}. * @return true if state updates should be done before onclick event handling */ protected boolean isStateUpdateFirst() { return false; } }