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 Link icon

    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 Link icon

    • hasListeners Link icon

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

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

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

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