|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICalculatorCallback
Provides access to events that occur when the state of the calculator changes.
Use ICalculatorCallBack to monitor the progress of calculation operations.
Method Summary | |
---|---|
boolean |
calculatorError(int rowID,
boolean bHasOID,
int errorType,
boolean bShowPrompt,
String errorMsg)
Error message provided by the calculator. |
void |
calculatorWarning(int rowID,
boolean bHasOID,
int errorType,
String errorMsg)
Warning message provided by the calculator. |
boolean |
status(int rowsWritten,
boolean lastStatus)
Current Status of the calculator. |
Method Detail |
---|
boolean status(int rowsWritten, boolean lastStatus) throws IOException, AutomationException
The Status method is called for each record to be processed during the calculation operation. Feedback may be provided to the user on the number of records processed and if the calculation should be aborted. This method would normally be set to true if for example, the user pressed the ESC key.
rowsWritten
- The rowsWritten (in)lastStatus
- The lastStatus (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean calculatorError(int rowID, boolean bHasOID, int errorType, boolean bShowPrompt, String errorMsg) throws IOException, AutomationException
CalculatorError is called when calculation process will no longer continue. Error messages, error types and the row id of the record where the calculation failed, may be written to an error log for reference.
rowID
- The rowID (in)bHasOID
- The bHasOID (in)errorType
- A com.esri.arcgis.geodatabaseui.esriCalculatorErrorType constant (in)bShowPrompt
- The bShowPrompt (in)errorMsg
- The errorMsg (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void calculatorWarning(int rowID, boolean bHasOID, int errorType, String errorMsg) throws IOException, AutomationException
CalculatorWarning is called when an issue was encountered during the calculation, but the calculation can continue.You can return a flag to abort, if you want to stop processing.
rowID
- The rowID (in)bHasOID
- The bHasOID (in)errorType
- A com.esri.arcgis.geodatabaseui.esriCalculatorErrorType constant (in)errorMsg
- The errorMsg (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.com.esri.arcgis.geoDatabaseUI.ICalculator#setCursorByRef(com.esri.arcgis.geodatabase.ICursor)
,
com.esri.arcgis.geoDatabaseUI.ICalculator#setCallbackByRef(com.esri.arcgis.geodatabaseui.ICalculatorCallback)
,
com.esri.arcgis.geoDatabaseUI.ICalculatorCallback#calculatorError(int, boolean, int, boolean, String)
,
com.esri.arcgis.geoDatabaseUI.ICalculator#calculate()
,
com.esri.arcgis.geoDatabaseUI.ICalculatorCallback#calculatorWarning(int, boolean, int, String)
,
com.esri.arcgis.geoDatabaseUI.ICalculatorCallback
,
com.esri.arcgis.geoDatabaseUI.Calculator
,
com.esri.arcgis.geoDatabaseUI.ICalculatorCallback#status(int, boolean)
,
com.esri.arcgis.geoDatabaseUI.ICalculator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |