Interface ILcdEventMulticaster

All Superinterfaces:
Serializable
All Known Implementing Classes:
TLcdEventMulticaster, TLcdModelProducerEventMulticaster

public interface ILcdEventMulticaster extends Serializable
An ILcdEventMulticaster can send out events to listeners. The listeners have to be registered, and the event can be passed as an argument in the dispatching method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(EventListener aListener)
    Adds the given listener to the list of registered listeners.
    void
    Sends out the given event to all the registered listeners.
    boolean
     
    void
    remove(EventListener aListener)
    Removes the given listener from the list of registered listeners.
  • Method Details

    • hasListeners

      boolean hasListeners()
      Returns:
      true if this ILcdEventMulticaster has any listeners, false otherwise.
    • dispatch

      void dispatch(ILcdDispatchableEvent aEvent)
      Sends out the given event to all the registered listeners.
      Parameters:
      aEvent - the event to dispatch.
    • add

      void add(EventListener aListener)
      Adds the given listener to the list of registered listeners.
      Parameters:
      aListener - the listener to be added.
    • remove

      void remove(EventListener aListener)
      Removes the given listener from the list of registered listeners.
      Parameters:
      aListener - the listener to be removed.