|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.systemUI.IOperationProxy
public class IOperationProxy
Provides access to members that control Operations.
IOperation is a interface that supports creating custom undo and redo operations in either ArcMap, ArcCatalog or standalone applications. An operation is an action, or group of actions, that may be undone or redone.
By creating a class that implements IOperation, you can use the Do method to execute some action, and then the Undo method to reset the action from the Do method. The Redo method follows this paradigm to support any specialized actions needed for managing the re-application of the Do method.
By implementing your actions within the IOperation interface, you will automatically add them to the application's OperationStack.
Verify the other classes that already implement IOperation, to avoid rewriting functions that already exist.
IOperationStack,
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 | |
|---|---|
|
IOperationProxy()
|
|
IOperationProxy(Object obj)
|
protected |
IOperationProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
esri_do()
Performs the operation. |
String |
getMenuString()
The menu string. |
boolean |
isCanRedo()
Indicates if the operation can be redone. |
boolean |
isCanUndo()
Indicates if the operation can be undone. |
void |
redo()
Redoes the operation. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
undo()
Undoes the operation. |
| 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 IOperationProxy()
public IOperationProxy(Object obj)
throws IOException
IOException
protected IOperationProxy(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.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public String getMenuString()
throws IOException,
AutomationException
The MenuString associated with the Operation. This is used by the application framework to populate the Edit menu in ArcMap. For example, adding a layer to ArcMap adds the menu string of the Operation "Undo Add Layers(s)" to the Edit menu.
getMenuString in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanUndo()
throws IOException,
AutomationException
CanUndo indicates if the operation can be un-done. Use the property before using the Undo method.
isCanUndo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanRedo()
throws IOException,
AutomationException
CanRedo indicates if the operation can be re-done. Use the property before using the Redo method.
isCanRedo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_do()
throws IOException,
AutomationException
esri_do in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void undo()
throws IOException,
AutomationException
Undo the operation to reset the action from the Do method. Use the CanUndo property to determine whether the operation can be un-done.
undo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redo()
throws IOException,
AutomationException
Redo the operation to redo the action from the Do method. Use the CanRedo property to determine whether the operation can be re-done.
redo in interface IOperationIOException - 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 | ||||||||