|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.players.QTPlayerEventHandler
When a QTPlayer is addedTo some kind of display space it receives an addedTo (or removedFrom) notification. At this point the QTPlayer will dispatch to the QTPlayerEventHandler to return a QTPlayerEventHandler which will handle all of the events that are generated from the source of interest that the player has been added to.
Applications can install custom event handler for the QTPlayer and in this construction process custom event handlers will be made first. If not custom event handlers are appropriate and a default handler exists it will be made and returned. The first event handler that is found will be returned as the event handler for any given QTPlayer.
The QTPlayerEventHandler is expected to handle all events for the QTPlayer.
Constructor Summary | |
protected |
QTPlayerEventHandler()
Construct a QTPlayerEventHandler |
Method Summary | |
protected abstract void |
addedTo()
When the QTPlayer is added to its addedTo interest its event Handler is notified and should add any interests it requires to receive events. |
static void |
registerEventHandlerMaker(QTPlayerEventHandlerMaker m)
Register a custom event handler maker that will make an EventDispatcher based on the type of event interest for the QTPlayer |
protected abstract void |
removedFrom()
When the QTPlayer is removed from its addedTo interest its event Handler is notified and should remove any interests it has declared for events |
static void |
removeEventHandlerMaker(QTPlayerEventHandlerMaker m)
Remove a custom event handler maker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected QTPlayerEventHandler()
Method Detail |
public static void registerEventHandlerMaker(QTPlayerEventHandlerMaker m)
e
- the makerpublic static void removeEventHandlerMaker(QTPlayerEventHandlerMaker m)
e
- the maker to removeprotected abstract void removedFrom()
protected abstract void addedTo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |