<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.util.mxEventSource</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B><DD><AHREF="../../../com/mxgraph/swing/util/mxAnimation.html"title="class in com.mxgraph.swing.util">mxAnimation</A>, <AHREF="../../../com/mxgraph/swing/handler/mxConnectPreview.html"title="class in com.mxgraph.swing.handler">mxConnectPreview</A>, <AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A>, <AHREF="../../../com/mxgraph/model/mxGraphModel.html"title="class in com.mxgraph.model">mxGraphModel</A>, <AHREF="../../../com/mxgraph/view/mxGraphSelectionModel.html"title="class in com.mxgraph.view">mxGraphSelectionModel</A>, <AHREF="../../../com/mxgraph/view/mxGraphView.html"title="class in com.mxgraph.view">mxGraphView</A>, <AHREF="../../../com/mxgraph/view/mxLayoutManager.html"title="class in com.mxgraph.view">mxLayoutManager</A>, <AHREF="../../../com/mxgraph/swing/handler/mxMovePreview.html"title="class in com.mxgraph.swing.handler">mxMovePreview</A>, <AHREF="../../../com/mxgraph/sharing/mxSharedState.html"title="class in com.mxgraph.sharing">mxSharedState</A>, <AHREF="../../../com/mxgraph/view/mxSpaceManager.html"title="class in com.mxgraph.view">mxSpaceManager</A>, <AHREF="../../../com/mxgraph/view/mxSwimlaneManager.html"title="class in com.mxgraph.view">mxSwimlaneManager</A>, <AHREF="../../../com/mxgraph/util/mxUndoManager.html"title="class in com.mxgraph.util">mxUndoManager</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxEventSource</B><DT>extends <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
Base class for objects that dispatch named events.
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></B></CODE>
<BR>
Defines the requirements for an object that listens to an event source.</TD>
</TR>
</TABLE>
<!-- =========== FIELD SUMMARY =========== -->
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
Constructs a new event source using this as the source object.</TD>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#mxEventSource(java.lang.Object)">mxEventSource</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> source)</CODE>
<BR>
Constructs a new event source for the given source object.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#addListener(java.lang.String, com.mxgraph.util.mxEventSource.mxIEventListener)">addListener</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> eventName,
<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener)</CODE>
<BR>
Binds the specified function to the given event name.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#fireEvent(com.mxgraph.util.mxEventObject)">fireEvent</A></B>(<AHREF="../../../com/mxgraph/util/mxEventObject.html"title="class in com.mxgraph.util">mxEventObject</A> evt)</CODE>
<BR>
Dispatches the given event name with this object as the event source.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#fireEvent(com.mxgraph.util.mxEventObject, java.lang.Object)">fireEvent</A></B>(<AHREF="../../../com/mxgraph/util/mxEventObject.html"title="class in com.mxgraph.util">mxEventObject</A> evt,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> sender)</CODE>
<BR>
Dispatches the given event name, passing all arguments after the given
name to the registered listeners for the event.</TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener)">removeListener</A></B>(<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener, java.lang.String)">removeListener</A></B>(<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> eventName)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxEventSource.html#setEventSource(java.lang.Object)">setEventSource</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> value)</CODE>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>><B>eventListeners</B></PRE>
<DL>
<DD>Holds the event names and associated listeners in an array. The array
contains the event name followed by the respective listener for each
registered listener.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="eventSource"><!----></A><H3>
eventSource</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>eventSource</B></PRE>
<DL>
<DD>Holds the source object for this event source.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="eventsEnabled"><!----></A><H3>
eventsEnabled</H3>
<PRE>
protected boolean <B>eventsEnabled</B></PRE>
<DL>
<DD>Specifies if events can be fired. Default is true.
public <B>mxEventSource</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> source)</PRE>
<DL>
<DD>Constructs a new event source for the given source object.
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>getEventSource</B>()</PRE>
public void <B>setEventSource</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> value)</PRE>
public void <B>addListener</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> eventName,
<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener)</PRE>
<DL>
<DD>Binds the specified function to the given event name. If no event name
is given, then the listener is registered for all events.
public void <B>removeListener</B>(<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener)</PRE>
<DL>
<DD>Function: removeListener
Removes all occurances of the given listener from the list of listeners.
public void <B>removeListener</B>(<AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A> listener,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> eventName)</PRE>
<DL>
<DD>Function: removeListener
Removes all occurances of the given listener from the list of listeners.
public void <B>fireEvent</B>(<AHREF="../../../com/mxgraph/util/mxEventObject.html"title="class in com.mxgraph.util">mxEventObject</A> evt,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> sender)</PRE>
<DL>
<DD>Dispatches the given event name, passing all arguments after the given