Class AsynchronousOKTask

  • All Implemented Interfaces:
    ITask

    public class AsynchronousOKTask
    extends java.lang.Object
    implements ITask
    A task that displays a message using a JOptionPane.
    • Field Detail

      • dialog

        protected javax.swing.JDialog dialog
      • cancelled

        protected boolean cancelled
    • Constructor Detail

      • AsynchronousOKTask

        public AsynchronousOKTask()
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(ITaskContext context,
                                               IInternalAccess process)
        Execute the task.
        Specified by:
        execute in interface ITask
        Parameters:
        context - The accessible values.
        process - The process instance executing the task.
        Returns:
        To be notified, when the task has completed.
      • cancel

        public IFuture<java.lang.Void> cancel​(IInternalAccess instance)
        Cleanup in case the task is cancelled.
        Specified by:
        cancel in interface ITask
        Returns:
        A future to indicate when cancellation has completed.