Groovy Documentation

griffon.plugins.tasks
[Java] Interface Tracker


public interface Tracker

Set intermediate results from within a long-running task.

Calls to setters will result in an ChangeEvent and any registered TaskListener is notified.

Calls to publish(Object[]) are routed back to Task.process which is executed on the UI thread. See UIThreadWorker for details.

Authors:
Eike Kettner
Since:
19.07.11 22:16


Method Summary
void publish(C... chunks)

void setPhase(String phase)

void setProgress(int progress)

Set the current progress.

void setProgress(int min, int max, int current)

Set the current progress.

 

Method Detail

publish

public void publish(C... chunks)


setPhase

public void setPhase(String phase)


setProgress

public void setProgress(int progress)
Set the current progress. progress must be a value from 0 to 100 (inclusive).
Parameters:
progress


setProgress

public void setProgress(int min, int max, int current)
Set the current progress.
Parameters:
min
max
current


 

Groovy Documentation