at.wisch.joystick.event
Class FeatureNotSupportedEventManager

java.lang.Object
  extended by at.wisch.joystick.event.FeatureNotSupportedEventManager

public class FeatureNotSupportedEventManager
extends java.lang.Object

The Class FeatureNotSupportedEventManager. This class keeps a collection of FeatureNotSupportedEventListeners. FeatureNotSupportedEventListeners can be added and removed, and if a FeatureNotSupportedEvent occurs, all the registered listeners are called back.

Author:
Martin Wischenbart
See Also:
FeatureNotSupportedEventListener, FeatureNotSupportedEvent

Constructor Summary
FeatureNotSupportedEventManager()
           
 
Method Summary
static boolean addFeatureNotSupportedEventListener(FeatureNotSupportedEventListener listener)
          Adds a FeatureNotSupportedEventListener to the collection.
static void featureNotSupportedEventOccured(FeatureNotSupportedEvent event)
          Invokes the callback method for all registered listeners.
static boolean removeFeatureNotSupportedEventListener(FeatureNotSupportedEventListener listener)
          Removes the FeatureNotSupportedEventListener from the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureNotSupportedEventManager

public FeatureNotSupportedEventManager()
Method Detail

addFeatureNotSupportedEventListener

public static boolean addFeatureNotSupportedEventListener(FeatureNotSupportedEventListener listener)
Adds a FeatureNotSupportedEventListener to the collection.

Parameters:
listener - the FeatureNotSupportedEventListener
Returns:
true, if successful. false, if adding was not successful.
See Also:
FeatureNotSupportedEventListener

removeFeatureNotSupportedEventListener

public static boolean removeFeatureNotSupportedEventListener(FeatureNotSupportedEventListener listener)
Removes the FeatureNotSupportedEventListener from the collection.

Parameters:
listener - the FeatureNotSupportedEventListener
Returns:
true, if successful. false, if removing was not successful.
See Also:
FeatureNotSupportedEventListener

featureNotSupportedEventOccured

public static void featureNotSupportedEventOccured(FeatureNotSupportedEvent event)
Invokes the callback method for all registered listeners.

Parameters:
event - the FeatureNotSupportedEvent
See Also:
FeatureNotSupportedEventListener.featureNotSupportedEventOccured(FeatureNotSupportedEvent)