ucar.nc2.util
Interface CancelTask


public interface CancelTask

Allows long tasks to be cancelled. Used in potentially long method calls which the user may want the option to cancel.

Author:
jcaron

Method Summary
 boolean isCancel()
          Called routine should check often during the task and cancel the task if it returns true.
 void setError(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.

Returns:
true if task was cancelled

setError

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

Parameters:
msg - message to show user


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.