SVG12FocusManagerpublic class FocusManager
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
FocusManager.DOMFocusInTracker |
The class that is responsible for tracking 'DOMFocusIn' changes.
|
protected class |
FocusManager.DOMFocusOutTracker |
The class that is responsible for tracking 'DOMFocusOut' changes.
|
protected class |
FocusManager.MouseClickTracker |
The class that is responsible for tracking 'mouseclick' changes.
|
protected class |
FocusManager.MouseOutTracker |
The class that is responsible to update the focus according to
'mouseout' event.
|
protected class |
FocusManager.MouseOverTracker |
The class that is responsible to update the focus according to
'mouseover' event.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected org.w3c.dom.Document |
document |
The document.
|
protected EventListener |
domFocusInListener |
The EventListener that tracks 'DOMFocusIn' events.
|
protected EventListener |
domFocusOutListener |
The EventListener that tracks 'DOMFocusOut' events.
|
protected EventTarget |
lastFocusEventTarget |
The element that has the focus so far.
|
protected EventListener |
mouseclickListener |
The EventListener that tracks 'mouseclick' events.
|
protected EventListener |
mouseoutListener |
The EventListener that tracks 'mouseout' events.
|
protected EventListener |
mouseoverListener |
The EventListener that tracks 'mouseover' events.
|
| Constructor | Description |
|---|---|
FocusManager(org.w3c.dom.Document doc) |
Constructs a new
FocusManager for the specified document. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addEventListeners(org.w3c.dom.Document doc) |
Adds the event listeners to the document.
|
void |
dispose() |
Removes all listeners attached to the document and that manage focus.
|
protected void |
fireDOMActivateEvent(EventTarget target,
int detailArg) |
Fires a 'DOMActivate' event to the specified target.
|
protected void |
fireDOMFocusInEvent(EventTarget target,
EventTarget relatedTarget) |
Fires a 'DOMFocusIn' event to the specified target.
|
protected void |
fireDOMFocusOutEvent(EventTarget target,
EventTarget relatedTarget) |
Fires a 'DOMFocusOut' event to the specified target.
|
EventTarget |
getCurrentEventTarget() |
Returns the current element that has the focus or null if any.
|
protected void |
removeEventListeners(org.w3c.dom.Document doc) |
Removes the event listeners from the document.
|
protected EventTarget lastFocusEventTarget
protected org.w3c.dom.Document document
protected EventListener mouseclickListener
protected EventListener domFocusInListener
protected EventListener domFocusOutListener
protected EventListener mouseoverListener
protected EventListener mouseoutListener
public FocusManager(org.w3c.dom.Document doc)
FocusManager for the specified document.doc - the documentprotected void addEventListeners(org.w3c.dom.Document doc)
protected void removeEventListeners(org.w3c.dom.Document doc)
public EventTarget getCurrentEventTarget()
public void dispose()
protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget)
target - the newly focussed event targetrelatedTarget - the previously focussed event targetprotected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget)
target - the previously focussed event targetrelatedTarget - the newly focussed event targetprotected void fireDOMActivateEvent(EventTarget target, int detailArg)
target - the event targetdetailArg - the detailArg parameter of the eventCopyright ? 2018 Apache Software Foundation. All Rights Reserved.