java.lang.Object
io.sf.carte.echosvg.bridge.FocusManager
io.sf.carte.echosvg.bridge.svg12.SVG12FocusManager
Focus manager for SVG 1.2 documents. Ensures bubble limits of DOM focus
events are set appropriately for sXBL. support.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
The class that is responsible for tracking 'DOMFocusIn' changes.protected class
The class that is responsible for tracking 'mouseclick' changes.protected class
The class that is responsible for tracking 'mouseout' changes.protected class
The class that is responsible for tracking 'mouseover' changes.Nested classes/interfaces inherited from class io.sf.carte.echosvg.bridge.FocusManager
FocusManager.DOMFocusOutTracker
-
Field Summary
Fields inherited from class io.sf.carte.echosvg.bridge.FocusManager
document, domFocusInListener, domFocusOutListener, lastFocusEventTarget, mouseclickListener, mouseoutListener, mouseoverListener
-
Constructor Summary
ConstructorDescriptionConstructs a newSVG12FocusManager
for the specified document. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the event listeners to the document.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.protected void
Removes the event listeners from the document.Methods inherited from class io.sf.carte.echosvg.bridge.FocusManager
dispose, fireDOMActivateEvent, getCurrentEventTarget
-
Constructor Details
-
SVG12FocusManager
Constructs a newSVG12FocusManager
for the specified document.- Parameters:
doc
- the document
-
-
Method Details
-
addEventListeners
Adds the event listeners to the document.- Overrides:
addEventListeners
in classFocusManager
-
removeEventListeners
Removes the event listeners from the document.- Overrides:
removeEventListeners
in classFocusManager
-
fireDOMFocusInEvent
Fires a 'DOMFocusIn' event to the specified target.- Overrides:
fireDOMFocusInEvent
in classFocusManager
- Parameters:
target
- the newly focussed event targetrelatedTarget
- the previously focussed event target
-
fireDOMFocusOutEvent
Fires a 'DOMFocusOut' event to the specified target.- Overrides:
fireDOMFocusOutEvent
in classFocusManager
- Parameters:
target
- the previously focussed event targetrelatedTarget
- the newly focussed event target
-