com.timeindexing.event
Class IndexEventMulticaster

java.lang.Object
  extended by com.timeindexing.event.IndexEventMulticaster
All Implemented Interfaces:
IndexEventGenerator

public class IndexEventMulticaster
extends java.lang.Object
implements IndexEventGenerator

A class that multicast IndexEvents to the relvant listenters. Usage based on javax.swing.event.EventListenerList.

See Also:
EventListenerList

Constructor Summary
IndexEventMulticaster()
          Create a an IndexEventMulticaster.
 
Method Summary
 void addAccessEventListener(IndexAccessEventListener l)
          Add a IndexAccessEventListener.
 void addAddEventListener(IndexAddEventListener l)
          Add a IndexAddEventListener.
 void addPrimaryEventListener(IndexPrimaryEventListener l)
          Add a IndexPrimaryEventListener.
 void fireAccessEvent(IndexEvent indexEvent)
          Notify all listeners that have registered interest for notification on Access events.
 void fireAddEvent(IndexEvent indexEvent)
          Notify all listeners that have registered interest for notification on Add events.
 void firePrimaryEvent(IndexEvent indexEvent)
          Notify all listeners that have registered interest for notification on Primary events.
 java.lang.Object[] getAccessEventListeners()
          List all IndexAccessEventListeners.
 java.lang.Object[] getAddEventListeners()
          List all IndexAddEventListeners.
 java.lang.Object[] getPrimaryEventListeners()
          List all IndexPrimaryEventListeners.
 boolean hasAccessEventListeners()
          Are there any Access Event Listeners
 boolean hasAddEventListeners()
          Are there any Add Event Listeners
 boolean hasPrimaryEventListeners()
          Are there any Primary Event Listeners
 void removeAccessEventListener(IndexAccessEventListener l)
          Remove a IndexAccessEventListener.
 void removeAddEventListener(IndexAddEventListener l)
          Remove a IndexAddEventListener.
 void removePrimaryEventListener(IndexPrimaryEventListener l)
          Remove a IndexPrimaryEventListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexEventMulticaster

public IndexEventMulticaster()
Create a an IndexEventMulticaster. It can fire IndexPrimaryEvents, IndexAddEvents, and IndexAccessEvents.

Method Detail

addPrimaryEventListener

public void addPrimaryEventListener(IndexPrimaryEventListener l)
Add a IndexPrimaryEventListener.

Specified by:
addPrimaryEventListener in interface IndexEventGenerator

removePrimaryEventListener

public void removePrimaryEventListener(IndexPrimaryEventListener l)
Remove a IndexPrimaryEventListener.

Specified by:
removePrimaryEventListener in interface IndexEventGenerator

getPrimaryEventListeners

public java.lang.Object[] getPrimaryEventListeners()
List all IndexPrimaryEventListeners.


hasPrimaryEventListeners

public boolean hasPrimaryEventListeners()
Are there any Primary Event Listeners


firePrimaryEvent

public void firePrimaryEvent(IndexEvent indexEvent)
Notify all listeners that have registered interest for notification on Primary events.


addAddEventListener

public void addAddEventListener(IndexAddEventListener l)
Add a IndexAddEventListener.

Specified by:
addAddEventListener in interface IndexEventGenerator

removeAddEventListener

public void removeAddEventListener(IndexAddEventListener l)
Remove a IndexAddEventListener.

Specified by:
removeAddEventListener in interface IndexEventGenerator

getAddEventListeners

public java.lang.Object[] getAddEventListeners()
List all IndexAddEventListeners.


hasAddEventListeners

public boolean hasAddEventListeners()
Are there any Add Event Listeners


fireAddEvent

public void fireAddEvent(IndexEvent indexEvent)
Notify all listeners that have registered interest for notification on Add events.


addAccessEventListener

public void addAccessEventListener(IndexAccessEventListener l)
Add a IndexAccessEventListener.

Specified by:
addAccessEventListener in interface IndexEventGenerator

removeAccessEventListener

public void removeAccessEventListener(IndexAccessEventListener l)
Remove a IndexAccessEventListener.

Specified by:
removeAccessEventListener in interface IndexEventGenerator

getAccessEventListeners

public java.lang.Object[] getAccessEventListeners()
List all IndexAccessEventListeners.


hasAccessEventListeners

public boolean hasAccessEventListeners()
Are there any Access Event Listeners


fireAccessEvent

public void fireAccessEvent(IndexEvent indexEvent)
Notify all listeners that have registered interest for notification on Access events.



Timeindexing 2008