|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.SwingWorker<java.lang.Object,java.lang.String[]>
pl.psnc.vlab.util.thread.DefaultLongTask
public abstract class DefaultLongTask
DefaultLongTask
class - DefaultLongTask - abstract class is used as a
base class for time consuming operations. Some of the utility methods have
been already implemented. Child classes are required to override
doInBackground() method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.SwingWorker |
---|
javax.swing.SwingWorker.StateValue |
Constructor Summary | |
---|---|
protected |
DefaultLongTask(java.awt.Component parent,
ProgressTask progress,
javax.swing.Action action)
Crates a new instance of DefaultLongTask |
protected |
DefaultLongTask(ProgressTask progress,
javax.swing.Action action)
Crates a new instance of DefaultLongTask |
Method Summary | |
---|---|
protected void |
done()
|
javax.swing.Action |
getAction()
Get value of action |
void |
hideProgress()
Hides Progress bar |
protected void |
process(java.util.List<java.lang.String[]> arg0)
|
protected int |
showProceedQuestion(java.lang.String message)
Show proceed question message for this LongTask. |
void |
showProgress(boolean interminate)
Show Progress bar |
void |
showProgress(java.lang.String message,
boolean interminate)
Show Progress bar with the initial message |
void |
updateMessage(java.lang.String... messages)
Update current progress bar message. |
protected void |
updateProgress(java.lang.String message)
Update progress bar. |
Methods inherited from class javax.swing.SwingWorker |
---|
addPropertyChangeListener, cancel, doInBackground, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultLongTask(java.awt.Component parent, ProgressTask progress, javax.swing.Action action)
parent
- parent object of this DefaultLongTaskprogress
- instance of ProgressTask
action
- action object for this long taskprotected DefaultLongTask(ProgressTask progress, javax.swing.Action action)
progress
- instance of ProgressTask
action
- action object for this long taskMethod Detail |
---|
protected void process(java.util.List<java.lang.String[]> arg0)
process
in class javax.swing.SwingWorker<java.lang.Object,java.lang.String[]>
protected void updateProgress(java.lang.String message)
message
- message to displayprotected void done()
done
in class javax.swing.SwingWorker<java.lang.Object,java.lang.String[]>
public void hideProgress()
ProgressTask
hideProgress
in interface ProgressTask
public void showProgress(boolean interminate)
ProgressTask
showProgress
in interface ProgressTask
interminate
- defines the behavior of the progress: interminate or
notpublic void showProgress(java.lang.String message, boolean interminate)
ProgressTask
showProgress
in interface ProgressTask
message
- message to be displayed on the status barinterminate
- defines the behavior of the progress: interminate or
notpublic void updateMessage(java.lang.String... messages)
ProgressTask
updateMessage
in interface ProgressTask
messages
- list of messages to be displayed. Each message will be
separated by white spaceprotected int showProceedQuestion(java.lang.String message)
message
- proceed question
JMessage.YES_OPTION
if proceed,
JMessage.NO_OPTION
otherwisepublic javax.swing.Action getAction()
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |