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
ConstructorDescriptionCreates a new instance ofTLcdAWTEventDispatchSupport
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAWTEventListener
(ILcdAWTEventListener aAWTEventListener) This method adds the passedILcdAWTEventListener
to the list of registered listeners.void
fireAWTEvent
(AWTEvent aAWTEvent) This method calls the methodILcdAWTEventListener.handleAWTEvent(java.awt.AWTEvent)
for allILcdAWTEventListener
s in the list of registered listeners.void
removeAWTEventListener
(ILcdAWTEventListener aAWTEventListener) This method removes a passedILcdAWTEventListener
from 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 passedILcdAWTEventListener
to the list of registered listeners.- Parameters:
aAWTEventListener
- the listener to be registered.
-
removeAWTEventListener
This method removes a passedILcdAWTEventListener
from 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 allILcdAWTEventListener
s in the list of registered listeners.- Parameters:
aAWTEvent
- the event to be passed to the registered listeners.
-