| |
|
| java.lang.Object org.apache.batik.bridge.FocusManager
All known Subclasses: org.apache.batik.bridge.svg12.SVG12FocusManager,
FocusManager | public class FocusManager (Code) | | A class that manages focus on elements.
author: Thierry Kormann version: $Id: FocusManager.java 475477 2006-11-15 22:44:28Z cam $ |
Inner Class :protected class MouseClickTracker implements EventListener | |
Inner Class :protected class DOMFocusInTracker implements EventListener | |
Inner Class :protected class DOMFocusOutTracker implements EventListener | |
Inner Class :protected class MouseOverTracker implements EventListener | |
Inner Class :protected class MouseOutTracker implements EventListener | |
Constructor Summary | |
public | FocusManager(Document doc) Constructs a new FocusManager for the specified document. |
domFocusInListener | protected EventListener domFocusInListener(Code) | | The EventListener that tracks 'DOMFocusIn' events.
|
domFocusOutListener | protected EventListener domFocusOutListener(Code) | | The EventListener that tracks 'DOMFocusOut' events.
|
lastFocusEventTarget | protected EventTarget lastFocusEventTarget(Code) | | The element that has the focus so far.
|
mouseclickListener | protected EventListener mouseclickListener(Code) | | The EventListener that tracks 'mouseclick' events.
|
mouseoutListener | protected EventListener mouseoutListener(Code) | | The EventListener that tracks 'mouseout' events.
|
mouseoverListener | protected EventListener mouseoverListener(Code) | | The EventListener that tracks 'mouseover' events.
|
FocusManager | public FocusManager(Document doc)(Code) | | Constructs a new FocusManager for the specified document.
Parameters: doc - the document |
addEventListeners | protected void addEventListeners(Document doc)(Code) | | Adds the event listeners to the document.
|
dispose | public void dispose()(Code) | | Removes all listeners attached to the document and that manage focus.
|
fireDOMActivateEvent | protected void fireDOMActivateEvent(EventTarget target, int detailArg)(Code) | | Fires a 'DOMActivate' event to the specified target.
Parameters: target - the event target Parameters: detailArg - the detailArg parameter of the event |
fireDOMFocusInEvent | protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget)(Code) | | Fires a 'DOMFocusIn' event to the specified target.
Parameters: target - the newly focussed event target Parameters: relatedTarget - the previously focussed event target |
fireDOMFocusOutEvent | protected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget)(Code) | | Fires a 'DOMFocusOut' event to the specified target.
Parameters: target - the previously focussed event target Parameters: relatedTarget - the newly focussed event target |
getCurrentEventTarget | public EventTarget getCurrentEventTarget()(Code) | | Returns the current element that has the focus or null if any.
|
removeEventListeners | protected void removeEventListeners(Document doc)(Code) | | Removes the event listeners from the document.
|
|
|
|