|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.arcmapui.IDocumentEventsDispProxy
public class IDocumentEventsDispProxy
Provides access to events that occur in ArcMap.
Use the IDocumentEventsDisp interface to perform some action when the ArcMap document events occur.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IDocumentEventsDispProxy()
|
|
IDocumentEventsDispProxy(Object obj)
|
protected |
IDocumentEventsDispProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
boolean |
activeViewChanged(IDocumentEventsDispActiveViewChangedEvent theEvent)
Fired when the active view has changed. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
boolean |
beforeCloseDocument(IDocumentEventsDispBeforeCloseDocumentEvent theEvent)
Fired before a document is closed. |
boolean |
closeDocument(IDocumentEventsDispCloseDocumentEvent theEvent)
Fired when a document is closed. |
boolean |
mapsChanged(IDocumentEventsDispMapsChangedEvent theEvent)
Fired when a change is made to the map collection. |
boolean |
newDocument(IDocumentEventsDispNewDocumentEvent theEvent)
Fired when a new document is created. |
boolean |
onContextMenu(IDocumentEventsDispOnContextMenuEvent theEvent)
Indicates if a context menu should be displayed at the given xy location. |
boolean |
openDocument(IDocumentEventsDispOpenDocumentEvent theEvent)
Fired when a document is opened. |
void |
removeListener(String iidStr,
Object theListener)
|
boolean |
vBAReset(IDocumentEventsDispVBAResetEvent theEvent)
Fired when VBA is reset. |
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 |
---|
public boolean noncastable
Constructor Detail |
---|
public IDocumentEventsDispProxy()
public IDocumentEventsDispProxy(Object obj) throws IOException
IOException
protected IDocumentEventsDispProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public boolean activeViewChanged(IDocumentEventsDispActiveViewChangedEvent theEvent) throws IOException, AutomationException
There are two different view types in ArcMap--data view and page layout view. Only one type of view can be active in the application at a time; the one with the focus is the active view. The ActiveViewChanged event occurs when the active view is changed. For example, this event is fired when ArcMap is switched from data view to page layout view or vice versa.
activeViewChanged
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean mapsChanged(IDocumentEventsDispMapsChangedEvent theEvent) throws IOException, AutomationException
mapsChanged
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean onContextMenu(IDocumentEventsDispOnContextMenuEvent theEvent) throws IOException, AutomationException
onContextMenu
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean newDocument(IDocumentEventsDispNewDocumentEvent theEvent) throws IOException, AutomationException
newDocument
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean openDocument(IDocumentEventsDispOpenDocumentEvent theEvent) throws IOException, AutomationException
This event occurs when a document is opened in ArcMap.
openDocument
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean closeDocument(IDocumentEventsDispCloseDocumentEvent theEvent) throws IOException, AutomationException
closeDocument
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean beforeCloseDocument(IDocumentEventsDispBeforeCloseDocumentEvent theEvent) throws IOException, AutomationException
beforeCloseDocument
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean vBAReset(IDocumentEventsDispVBAResetEvent theEvent) throws IOException, AutomationException
vBAReset
in interface IDocumentEventsDisp
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |