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 SummaryNested Classes Modifier and Type Class Description static interfaceRibsEventListener.ListenerAn interface for objects that want notification about event processing.
 - 
Constructor SummaryConstructors Constructor Description RibsEventListener()
 - 
Method SummaryAll 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- 
getSharedpublic static RibsEventListener getShared() Returns the shared instance of the event queue.
 - 
setEnabledpublic void setEnabled(boolean isEnabled) Turns this listener on or off.
 - 
getListenerCountpublic int getListenerCount() Returns the number of Ribs EventListeners for this queue.
 - 
getListenerpublic RibsEventListener.Listener getListener(int anIndex) Returns the individual listener at the given index.
 - 
addEventListenerpublic void addEventListener(RibsEventListener.Listener aListener) Adds an Ribs.EventListener to this RibsEventQueue.
 - 
removeEventListenerpublic void removeEventListener(RibsEventListener.Listener aListener) Removes an Ribs.EventListener from the RibsEventQueue.
 - 
eventDispatchedpublic void eventDispatched(java.awt.AWTEvent e) An implementation of dispatch event to do useful Ribs things.- Specified by:
- eventDispatchedin interface- java.awt.event.AWTEventListener
 
 
- 
 
-