MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / setFocusedElement

Method setFocusedElement

src/main/java/org/htmlunit/html/HtmlPage.java:2519–2521  ·  view source on GitHub ↗

Moves the focus to the specified element. This will trigger any relevant JavaScript event handlers. @param newElement the element that will receive the focus, use null to remove focus from any element @return true if the specified element now has the focus @see #getFocusedElement()

(final DomElement newElement)

Source from the content-addressed store, hash-verified

2517 * @see #getFocusedElement()
2518 */
2519 public boolean setFocusedElement(final DomElement newElement) {
2520 return setFocusedElement(newElement, false);
2521 }
2522
2523 /**
2524 * Moves the focus to the specified element. This will trigger any relevant JavaScript

Callers 11

type_onchangeMethod · 0.95
focusinMethod · 0.95
setSelectionTextMethod · 0.95
setCurrentWindowMethod · 0.95
focusMethod · 0.95
blurMethod · 0.95
tabToNextElementMethod · 0.95
tabToPreviousElementMethod · 0.95
setSelectedAttributeMethod · 0.80
clickMethod · 0.80
detachMethod · 0.80

Calls 6

removeFocusMethod · 0.95
fireEventMethod · 0.95
focusMethod · 0.65
getEnclosedPageMethod · 0.65
getEnclosingWindowMethod · 0.65
fireEventMethod · 0.45

Tested by 3

type_onchangeMethod · 0.76
focusinMethod · 0.76
setSelectionTextMethod · 0.76