Class TLcdAWTEventDispatchSupport

java.lang.Object
com.luciad.input.TLcdAWTEventDispatchSupport

public class TLcdAWTEventDispatchSupport extends Object
This class makes it easier to implement ILcdAWTEventDispatchers. It stores a list of ILcdAWTListeners.
Since:
10.0
  • Constructor Details

    • TLcdAWTEventDispatchSupport

      public TLcdAWTEventDispatchSupport()
      Creates a new instance of TLcdAWTEventDispatchSupport.
  • Method Details

    • addAWTEventListener

      public void addAWTEventListener(ILcdAWTEventListener aAWTEventListener)
      This method adds the passed ILcdAWTEventListener to the list of registered listeners.
      Parameters:
      aAWTEventListener - the listener to be registered.
    • removeAWTEventListener

      public void removeAWTEventListener(ILcdAWTEventListener aAWTEventListener)
      This method removes a passed ILcdAWTEventListener 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

      public void fireAWTEvent(AWTEvent aAWTEvent)
      This method calls the method ILcdAWTEventListener.handleAWTEvent(java.awt.AWTEvent) for all ILcdAWTEventListeners in the list of registered listeners.
      Parameters:
      aAWTEvent - the event to be passed to the registered listeners.