org.jdesktop.wonderland.client.hud
Interface HUDEventSource

All Known Subinterfaces:
HUD, HUDButton, HUDComponent, HUDDialog, HUDMessage, HUDObject

public interface HUDEventSource

A source of HUD events.

Author:
nsimpson

Method Summary
 void addEventListener(HUDEventListener listener)
          Adds a listener for HUD object events
 HUDEventListener[] getEventListeners()
          Gets the listeners for this HUD object
 void notifyEventListeners(HUDEvent.HUDEventType eventType)
          Convenience method for notifying event listeners
 void notifyEventListeners(HUDEvent event)
          Notifies this HUD object's event listeners of an event
 void removeEventListener(HUDEventListener listener)
          Removes a listener for HUD object events
 

Method Detail

addEventListener

void addEventListener(HUDEventListener listener)
Adds a listener for HUD object events

Parameters:
listener - a new listener

removeEventListener

void removeEventListener(HUDEventListener listener)
Removes a listener for HUD object events

Parameters:
listener - the listener to remove

getEventListeners

HUDEventListener[] getEventListeners()
Gets the listeners for this HUD object

Returns:
a list of event listeners

notifyEventListeners

void notifyEventListeners(HUDEvent event)
Notifies this HUD object's event listeners of an event

Parameters:
event - a HUD event

notifyEventListeners

void notifyEventListeners(HUDEvent.HUDEventType eventType)
Convenience method for notifying event listeners

Parameters:
eventType - the type of the notification event


Open Wonderland - http://openwonderland.org