VLab Common 1.2

pl.psnc.vlab.util.swing.thread
Interface LongTask

All Known Implementing Classes:
SessionManager, SplashDialogWorker

Deprecated. classes from pl.psnc.vlab.util.thread should be used

public interface LongTask

Interface used in time consuming operations launched in a seperate thread

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Method Summary
 boolean exceptionThrown()
          Deprecated. Indicates wheter the Long Task has thrown an exception
 java.lang.Exception getException()
          Deprecated. Each exception which is cought during task execution will be returned by this method.
 int getProgress()
          Deprecated. Get the current state of the executed task
 java.lang.Object getResult()
          Deprecated. Return an object produced by the executed task.
 int getTaskLength()
          Deprecated. Get the length of the task
 boolean isDone()
          Deprecated. Tells whether am execuded task has been completed
 

Method Detail

getTaskLength

int getTaskLength()
Deprecated. 
Get the length of the task

Returns:
the length of the task

getProgress

int getProgress()
Deprecated. 
Get the current state of the executed task

Returns:
the current state of the executed task (where getTaskLength() is max size

isDone

boolean isDone()
Deprecated. 
Tells whether am execuded task has been completed

Returns:
true/false

getResult

java.lang.Object getResult()
Deprecated. 
Return an object produced by the executed task. Usually it will be the value returned by the method executed in the seperate thread.

Returns:
If no value is produced the null value will be returned

exceptionThrown

boolean exceptionThrown()
Deprecated. 
Indicates wheter the Long Task has thrown an exception

Returns:
true if exception has been thrown, false otherwise

getException

java.lang.Exception getException()
Deprecated. 
Each exception which is cought during task execution will be returned by this method.

Returns:
exception object or null if no exception has been thrown

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.