Groovy Documentation

griffon.plugins.tasks
[Java] Interface TaskListener


public interface TaskListener
extends EventListener

Listener receives events about execution of a task. All methods are invoked on the UI thread.

Authors:
Eike Kettner
Since:
20.07.11 00:22


Method Summary
void phaseChanged(ChangeEvent event)

Receives notifications about phase changes of a task.

void progressChanged(ChangeEvent event)

Receives notifications about the current progress of a task.

void stateChanged(ChangeEvent event)

Receives notifications about state change for a task.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

phaseChanged

public void phaseChanged(ChangeEvent event)
Receives notifications about phase changes of a task. A task can set information messages about sub-steps taken, which is called a phase.
Parameters:
event


progressChanged

public void progressChanged(ChangeEvent event)
Receives notifications about the current progress of a task. The progress values are normalized and values are [0, 100].
Parameters:
event


stateChanged

public void stateChanged(ChangeEvent event)
Receives notifications about state change for a task. There are 3 events possible in a task's life cycle
  1. null to pending
  2. indicates, that a brand new task has just been created.
  3. pending to started indicates, that the task has just been executed and is now running
  4. from started state, three different final events are possible:
    • done indicates successful termination of the task
    • cancelled indicates that the task has been cancelled explicitly.
    • failed indicates that the task has been failed due to an exception.
Parameters:
event


 

Groovy Documentation