ucar.nc2.util
Interface CancelTask


public interface CancelTask

Allows long tasks to be cancelled. Use this when you are making a call that could take a long time, and you want to allow the user to cancel it.

Version:
$Revision:63 $ $Date:2006-07-12 21:50:51Z $
Author:
jcaron

Method Summary
 boolean isCancel()
          Called routine should check often during the task and cancel the task if it returns true.
 void setError(java.lang.String msg)
          Called routine got an error, so it sets a message for calling program to show to user.
 

Method Detail

isCancel

boolean isCancel()
Called routine should check often during the task and cancel the task if it returns true.


setError

void setError(java.lang.String msg)
Called routine got an error, so it sets a message for calling program to show to user.