Package com.ribs
Class RibsEventListener
- java.lang.Object
-
- com.ribs.RibsEventListener
-
- All Implemented Interfaces:
java.awt.event.AWTEventListener
,java.util.EventListener
public class RibsEventListener extends java.lang.Object implements java.awt.event.AWTEventListener
An AWTEventListener implementation to capture isAltDown(), isMetaDown() and notifications: appActivated, appDeactivated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RibsEventListener.Listener
An interface for objects that want notification about event processing.
-
Constructor Summary
Constructors Constructor Description RibsEventListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEventListener(RibsEventListener.Listener aListener)
Adds an Ribs.EventListener to this RibsEventQueue.void
eventDispatched(java.awt.AWTEvent e)
An implementation of dispatch event to do useful Ribs things.RibsEventListener.Listener
getListener(int anIndex)
Returns the individual listener at the given index.int
getListenerCount()
Returns the number of Ribs EventListeners for this queue.static RibsEventListener
getShared()
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.
-
-
-
Method Detail
-
getShared
public static RibsEventListener getShared()
Returns the shared instance of the event queue.
-
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
public RibsEventListener.Listener getListener(int anIndex)
Returns the individual listener at the given index.
-
addEventListener
public void addEventListener(RibsEventListener.Listener aListener)
Adds an Ribs.EventListener to this RibsEventQueue.
-
removeEventListener
public void removeEventListener(RibsEventListener.Listener aListener)
Removes an Ribs.EventListener from the RibsEventQueue.
-
eventDispatched
public void eventDispatched(java.awt.AWTEvent e)
An implementation of dispatch event to do useful Ribs things.- Specified by:
eventDispatched
in interfacejava.awt.event.AWTEventListener
-
-