Package com.ribs
Class RibsEventListener
java.lang.Object
com.ribs.RibsEventListener
- All Implemented Interfaces:
AWTEventListener
,EventListener
An AWTEventListener implementation to capture isAltDown(), isMetaDown() and notifications: appActivated,
appDeactivated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An interface for objects that want notification about event processing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(RibsEventListener.Listener aListener) Adds an Ribs.EventListener to this RibsEventQueue.void
An implementation of dispatch event to do useful Ribs things.getListener
(int anIndex) Returns the individual listener at the given index.int
Returns the number of Ribs EventListeners for this queue.static RibsEventListener
Returns the shared instance of the event queue.void
removeEventListener
(RibsEventListener.Listener aListener) Removes an Ribs.EventListener from the RibsEventQueue.void
setEnabled
(boolean isEnabled) Turns this listener on or off.
-
Constructor Details
-
RibsEventListener
public RibsEventListener()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean isEnabled) Turns this listener on or off. -
getListenerCount
public int getListenerCount()Returns the number of Ribs EventListeners for this queue. -
getListener
Returns the individual listener at the given index. -
addEventListener
Adds an Ribs.EventListener to this RibsEventQueue. -
removeEventListener
Removes an Ribs.EventListener from the RibsEventQueue. -
eventDispatched
An implementation of dispatch event to do useful Ribs things.- Specified by:
eventDispatched
in interfaceAWTEventListener