Interface AsyncClientTask
- 
- All Known Implementing Classes:
- CopyTagJsonAction.Task,- HierarchialTranslationTable.AbstractExportTask,- HierarchialTranslationTable.AbstractImportTask,- HierarchialTranslationTable.PropBasedExportTask,- HierarchialTranslationTable.PropBasedImportTask,- TagTransferHandler.ImportClientTagTask,- TagTransferHandler.ImportTagJsonTask,- TagTransferHandler.MoveClientTagTask,- TagTransferHandler.OpcImportTask,- TagTransferHandler.TagPasteTask
 
 public interface AsyncClientTaskAn AsyncClientTask is a task that can be executed through the client progress manager. It is very similar to a runnable, but the run function takes a progress listener, and can throw an exception.The task can also specify whether or not the user is allowed to cancel the operation (if so, the canceled state will be visible through the progressListener), and can specify a title for the operation. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanCancel()Whether or not the user is allowed to cancel the operation.java.lang.StringgetTaskTitle()A helpful title describing the operation for the user.voidrun(TaskProgressListener progressListener)The "work" function.
 
- 
- 
- 
Method Detail- 
getTaskTitlejava.lang.String getTaskTitle() A helpful title describing the operation for the user.
 - 
canCancelboolean canCancel() Whether or not the user is allowed to cancel the operation.
 - 
runvoid run(TaskProgressListener progressListener) throws java.lang.Exception The "work" function. Should update the progressListener of status, and check whether the operation has been canceled, if applicable. Should throw an exception on failure.- Throws:
- java.lang.Exception
 
 
- 
 
-