app.spa
Class SPAAvatarEventHandler

java.lang.Object
  extended by app.spa.SPAAvatarEventHandler
All Implemented Interfaces:
player.AvatarEventHandler

public class SPAAvatarEventHandler
extends java.lang.Object
implements player.AvatarEventHandler

Avatar event handler: receives notification of avatar load/unload events from the SiGML Player Applet's JA player component, converting them into SPAEvents which it posts (typically to the SPA event dispatcher thread) via an event target supplied at construction time.


Constructor Summary
SPAAvatarEventHandler(SPAEventTarget etarget)
          Constructs a new avatar event handler, which will direct the SPAEvents it generates to the given target.
 
Method Summary
 void avatarIsLoaded(java.lang.String avatar)
          Handles the avatar loaded event, for the given avatar, which may be null, indicating an unsuccessful load operation.
 void avatarIsUnloaded(java.lang.String avatar)
          Handles the avatar unloaded event, for the given avatar.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPAAvatarEventHandler

public SPAAvatarEventHandler(SPAEventTarget etarget)
Constructs a new avatar event handler, which will direct the SPAEvents it generates to the given target.

Method Detail

avatarIsLoaded

public void avatarIsLoaded(java.lang.String avatar)
Handles the avatar loaded event, for the given avatar, which may be null, indicating an unsuccessful load operation. Posts a loaded-ok or load-failed event to this handler's target, and checks the resulting acknowledgement.

Specified by:
avatarIsLoaded in interface player.AvatarEventHandler

avatarIsUnloaded

public void avatarIsUnloaded(java.lang.String avatar)
Handles the avatar unloaded event, for the given avatar. Posts an unloaded event to this handler's target and checks the resulting acknowledgement.

Specified by:
avatarIsUnloaded in interface player.AvatarEventHandler