com.esri.arcgis.framework
Class IAppROTEventsProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.framework.IAppROTEventsProxy
All Implemented Interfaces:
IAppROTEvents, Externalizable, Serializable, EventListener

public class IAppROTEventsProxy
extends com.esri.arcgis.interop.Dispatch
implements IAppROTEvents, Serializable

Provides access to events that occur on the Esri application running object table.

Remarks

The AppROT events are designed to let interested applications or components know when an ESRI application has started or terminated. When an instance of an application starts or terminates, an event will automatically be fired from the AppROT to let all listeners know about it. This may be useful if listening components or applications need to maintain "switch-to" lists, or if they want to synchronize representations between all running instances so that if something happens in one application, all anothers can be informed and update themselves appropriately. Such "coordinating" components would need to know when new instances start and when existing ones terminate.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IAppROTEventsProxy()
           
  IAppROTEventsProxy(Object obj)
           
protected IAppROTEventsProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void appAdded(IAppROTEventsAppAddedEvent theEvent)
          Occurs when an application reference is added to the table.
 void appRemoved(IAppROTEventsAppRemovedEvent theEvent)
          Occurs when an application reference is removed from the table.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IAppROTEventsProxy

public IAppROTEventsProxy()

IAppROTEventsProxy

public IAppROTEventsProxy(Object obj)
                   throws IOException
Throws:
IOException

IAppROTEventsProxy

protected IAppROTEventsProxy(Object obj,
                             String iid)
                      throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

appAdded

public void appAdded(IAppROTEventsAppAddedEvent theEvent)
              throws IOException,
                     AutomationException
Occurs when an application reference is added to the table.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
appAdded in interface IAppROTEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IApplication

appRemoved

public void appRemoved(IAppROTEventsAppRemovedEvent theEvent)
                throws IOException,
                       AutomationException
Occurs when an application reference is removed from the table.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
appRemoved in interface IAppROTEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IApplication