src/main/java/com/mxgraph/util/mxEventSource.java
public void addListener(String eventName, mxIEventListener listener)
	{
		if (eventListeners == null)
		{
			eventListeners = new ArrayList<Object>();
		}

		eventListeners.add(eventName);
		eventListeners.add(listener);
	}
/**
	 * Binds the specified function to the given event name. If no event name
	 * is given, then the listener is registered for all events.
	 */
Binds the specified function to the given event name. If no event name
is given, then the listener is registered for all events.
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 addListener(String eventName, mxIEventListener listener)
	{
		if (eventListeners == null)
		{
			eventListeners = new ArrayList<Object>();
		}
		eventListeners.add(eventName);
		eventListeners.add(listener);
	}
public void addListener ( String eventName , mxIEventListener listener ) { if ( eventListeners == null ) { eventListeners = new ArrayList < Object > ( ) ; } eventListeners . add ( eventName ) ; eventListeners . add ( listener ) ; }
Binds the specified function to the given event name.
Binds the specified function to the given event name .