/** * {@inheritDoc} */ @Override protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlKey) throws IOException { final HtmlForm form = getEnclosingForm(); if (form != null) { form.reset(); return false; } super.doClickStateUpdate(shiftKey, ctrlKey); return false; }
/** * {@inheritDoc} */ @Override protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlKey) throws IOException { final HtmlForm form = getEnclosingForm(); if (form != null) { form.reset(); return false; } super.doClickStateUpdate(shiftKey, ctrlKey); return false; }
/** * This method will be called if there either wasn't an onclick handler or there was * but the result of that handler was true. 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 occurred */ @Override protected Page doClickAction(final Page defaultPage) throws IOException { final HtmlForm form = getEnclosingForm(); if (form != null) { return form.reset(); } return super.doClickAction(defaultPage); }
/** * This method will be called if there either wasn't an onclick handler or there was * but the result of that handler was true. 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 occurred */ @Override protected Page doClickAction(final Page defaultPage) throws IOException { final HtmlForm form = getEnclosingForm(); if (form != null) { return form.reset(); } return super.doClickAction(defaultPage); }
/** * This method will be called if there either wasn't an onclick handler or there was * but the result of that handler was true. 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 occurred */ @Override protected Page doClickAction(final Page defaultPage) throws IOException { final HtmlForm form = getEnclosingForm(); if (form != null) { return form.reset(); } return super.doClickAction(defaultPage); }