VLab Common 1.2

pl.psnc.vlab.management
Class SplashDialogWorker

java.lang.Object
  extended by pl.psnc.vlab.management.SplashDialogWorker
All Implemented Interfaces:
LongTask

public class SplashDialogWorker
extends java.lang.Object
implements LongTask

SplashDialogWorker class - thread opens an splash window

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

Constructor Summary
SplashDialogWorker(javax.swing.JDialog splashDialog)
          Creates a new instance of AppInitializer
 
Method Summary
 boolean exceptionThrown()
          Indicates whether the Long Task has thrown an exception
 java.lang.Exception getException()
          Each exception which is cought during task execution will be returned by this method.
 int getProgress()
          Get the current state of the executed task
 java.lang.Object getResult()
          Return an object produced by the executed task.
 int getTaskLength()
          Get the length of the task
 boolean isDone()
          Tells whether am executed task has been completed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplashDialogWorker

public SplashDialogWorker(javax.swing.JDialog splashDialog)
Creates a new instance of AppInitializer

Parameters:
splashDialog - the splash dialog, which will be displayed on application startup
Method Detail

exceptionThrown

public boolean exceptionThrown()
Indicates whether the Long Task has thrown an exception

Specified by:
exceptionThrown in interface LongTask
Returns:
true if exception has been thrown, false otherwise

getProgress

public int getProgress()
Get the current state of the executed task

Specified by:
getProgress in interface LongTask
Returns:
the current state of the executed task (where getTaskLength() is max size

getException

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

Specified by:
getException in interface LongTask
Returns:
exception object or null if no exception has been thrown

getResult

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

Specified by:
getResult in interface LongTask
Returns:
If no value is produced the null value will be returned

getTaskLength

public int getTaskLength()
Get the length of the task

Specified by:
getTaskLength in interface LongTask
Returns:
the length of the task

isDone

public boolean isDone()
Tells whether am executed task has been completed

Specified by:
isDone in interface LongTask
Returns:
true/false

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.