Package com.luciad.input
Class TLcdAWTEventDispatchSupport
java.lang.Object
com.luciad.input.TLcdAWTEventDispatchSupport
This class makes it easier to implement
ILcdAWTEventDispatchers.
It stores a list of ILcdAWTListeners.- Since:
- 10.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofTLcdAWTEventDispatchSupport. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAWTEventListener(ILcdAWTEventListener aAWTEventListener) This method adds the passedILcdAWTEventListenerto the list of registered listeners.voidfireAWTEvent(AWTEvent aAWTEvent) This method calls the methodILcdAWTEventListener.handleAWTEvent(java.awt.AWTEvent)for allILcdAWTEventListeners in the list of registered listeners.voidremoveAWTEventListener(ILcdAWTEventListener aAWTEventListener) This method removes a passedILcdAWTEventListenerfrom the list of registered listeners or does nothing if the passed listener is no element of the list.
-
Constructor Details
-
TLcdAWTEventDispatchSupport
public TLcdAWTEventDispatchSupport()Creates a new instance ofTLcdAWTEventDispatchSupport.
-
-
Method Details
-
addAWTEventListener
This method adds the passedILcdAWTEventListenerto the list of registered listeners.- Parameters:
aAWTEventListener- the listener to be registered.
-
removeAWTEventListener
This method removes a passedILcdAWTEventListenerfrom the list of registered listeners or does nothing if the passed listener is no element of the list.- Parameters:
aAWTEventListener- the listener to be removed from the list of listeners.
-
fireAWTEvent
This method calls the methodILcdAWTEventListener.handleAWTEvent(java.awt.AWTEvent)for allILcdAWTEventListeners in the list of registered listeners.- Parameters:
aAWTEvent- the event to be passed to the registered listeners.
-