org.apache.batik.util
Interface DocumentEventSource

All Known Implementing Classes:
DocumentLoadRunnable

public interface DocumentEventSource

An interface which should be implemented by classes which produce and dispatch DocumentEvents.


Method Summary
 void addDocumentListener(DocumentListener l)
          Associate a DocumentEventListener with this loader.
 void fireAsyncDocumentEvent(DocumentEvent e, boolean wait)
          Fire a document event to all listeners.
 void removeDocumentListener(DocumentListener l)
          Remove a DocumentEventListener from this loader's listener list.
 

Method Detail

fireAsyncDocumentEvent

public void fireAsyncDocumentEvent(DocumentEvent e,
                                   boolean wait)
Fire a document event to all listeners. Note that since java events are processed in the firing thread, not in the AWT event thread, we must wrap the event notification in an "invokeLater" or "invokeAntWait" call. If the delivering thread is already the AWT Event thread the event is delivered directly.
Parameters:
e - the DocumentEvent to be asynchronously delivered.
wait - a boolean indicating whether we should wait for delivery

addDocumentListener

public void addDocumentListener(DocumentListener l)
Associate a DocumentEventListener with this loader.

removeDocumentListener

public void removeDocumentListener(DocumentListener l)
Remove a DocumentEventListener from this loader's listener list.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.