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.AWTEventListenerAn AWTEventListener implementation to capture isAltDown(), isMetaDown() and notifications: appActivated, appDeactivated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRibsEventListener.ListenerAn 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 voidaddEventListener(RibsEventListener.Listener aListener)Adds an Ribs.EventListener to this RibsEventQueue.voideventDispatched(java.awt.AWTEvent e)An implementation of dispatch event to do useful Ribs things.RibsEventListener.ListenergetListener(int anIndex)Returns the individual listener at the given index.intgetListenerCount()Returns the number of Ribs EventListeners for this queue.static RibsEventListenergetShared()Returns the shared instance of the event queue.voidremoveEventListener(RibsEventListener.Listener aListener)Removes an Ribs.EventListener from the RibsEventQueue.voidsetEnabled(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:
eventDispatchedin interfacejava.awt.event.AWTEventListener
-
-