cz.zcu.fav.kiv.editor.controller
Class ProgressControl

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.controller.ProgressControl

public class ProgressControl
extends java.lang.Object

The ProgressControl class controls the progress of configuration files loading.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
ProgressControl()
          Initializes a newly created empty ProgressControl.
 
Method Summary
static void addStatMessage(java.lang.String statMessage)
           
 int getCurrent()
          Called from ProgressBar to find out how much has been done.
 ConfigData getData()
          Returns editor data structure loaded from configuration files.
 java.lang.String getErrorMessage()
          Returns the error message.
 java.lang.String getMessage()
          Returns the most recent status message.
 void go()
          Launches the thread which loads configuration files.
 boolean isCanceled()
          Called from ProgressBar to find out if the task is canceled.
 boolean isDone()
          Called from ProgressBar to find out if the task has completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressControl

public ProgressControl()
Initializes a newly created empty ProgressControl.

Method Detail

getData

public ConfigData getData()
Returns editor data structure loaded from configuration files.

Returns:
the editor data structure loaded from configuration files.

go

public void go()
Launches the thread which loads configuration files.


getCurrent

public int getCurrent()
Called from ProgressBar to find out how much has been done.

Returns:
the number indicating the loading progress.

isDone

public boolean isDone()
Called from ProgressBar to find out if the task has completed.

Returns:
true if the task is done.

isCanceled

public boolean isCanceled()
Called from ProgressBar to find out if the task is canceled.

Returns:
true if the task is camceled.

getMessage

public java.lang.String getMessage()
Returns the most recent status message.

Returns:
the most recent status message.

getErrorMessage

public java.lang.String getErrorMessage()
Returns the error message.

Returns:
the error message.

addStatMessage

public static void addStatMessage(java.lang.String statMessage)