|
|||||||||
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.editor.IEditTaskProxy
public class IEditTaskProxy
Provides access to a task that receives notification when the sketch is complete.
You can find and set an edit task either by using the Name property in conjunction with IEdtior::TaskCount and IEditor::Task or by IEditTaskSearch
IEditAttributeProperties
,
IEditSketch
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IEditTaskProxy()
|
|
IEditTaskProxy(Object obj)
|
protected |
IEditTaskProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
activate(IEditor editor,
IEditTask oldTask)
Called by the editor when the task becomes active. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
deactivate()
Called by the editor when the task becomes inactive. |
String |
getName()
The name of the edit task. |
void |
onDeleteSketch()
Notifies the task that the edit sketch has been deleted. |
void |
onFinishSketch()
Notifies the task that the edit sketch is complete. |
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 |
---|
public boolean noncastable
Constructor Detail |
---|
public IEditTaskProxy()
public IEditTaskProxy(Object obj) throws IOException
IOException
protected IEditTaskProxy(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 String getName() throws IOException, AutomationException
The Name property is usually used with IEdtior::TaskCount and IEditor::Task to change the editor's current task. It is not a good idea to set an edit task via its index as this may change and is likely different for different users.
getName
in interface IEditTask
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
ISketchTool
,
esriSketchConstraint
,
IEditSketch
public void activate(IEditor editor, IEditTask oldTask) throws IOException, AutomationException
activate
in interface IEditTask
editor
- A reference to a com.esri.arcgis.editor.IEditor (in)oldTask
- A reference to a com.esri.arcgis.editor.IEditTask (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditAttributeProperties
,
IEditSketch
public void deactivate() throws IOException, AutomationException
deactivate
in interface IEditTask
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
public void onFinishSketch() throws IOException, AutomationException
onFinishSketch
in interface IEditTask
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
public void onDeleteSketch() throws IOException, AutomationException
OnDeleteSketch gives an edit task an opportunity to clean up any steps that were already completed. For example, if you had added any SketchOperation to the operation stack you may want to remove them.
onDeleteSketch
in interface IEditTask
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |