|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.ucsb.nceas.morpho.util.ProgressBarThread
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ProgressBarThread()
Create a new progress bar object with parentDialog as null and initialize a javax.swing.JProgressBar object. |
|
ProgressBarThread(javax.swing.JDialog parentDialog)
Create a new progress bar object with parentDialog passed as parameter and initialize a javax.swing.JProgressBar object. |
Method Summary | |
void |
exitProgressBarThread()
Stops the timer, closes the dialog and exits. |
int |
getMaximumValue()
gets the maximum value of the progress bar |
javax.swing.JDialog |
getParentDialog()
gets the parentDialog |
javax.swing.JProgressBar |
getProgressBar()
gets the progress bar |
java.lang.String |
getProgressBarString()
gets the string that is shown on the progress bar. |
int |
getProgressUpdateTime()
gets the time after which progress bar is updated |
int |
getProgressUpdateValue()
gets the integer value by which progress bar is updated |
void |
run()
Execute the thread. |
void |
setCustomCancelAction(javax.swing.Action a)
Sets the javax.swing.Action to be executed on pressing the
cancel button. |
void |
setMaximumValue(int maximumValue)
Method to set the maximum value of the progress bar |
void |
setParentDialog(javax.swing.JDialog parentDialog)
Method to set the parent dialog. |
void |
setProgressBar(javax.swing.JProgressBar progressBar)
Method to set the progress bar. |
void |
setProgressBarString(java.lang.String value)
Method to set the String shown on the progress bar. |
void |
setProgressUpdateTime(int progressUpdateTime)
Method to set the time after which progress bar is updated |
void |
setProgressUpdateValue(int progressUpdateValue)
Method to set the int value with which progress bar is updated. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProgressBarThread()
public ProgressBarThread(javax.swing.JDialog parentDialog)
Method Detail |
public void run()
public void exitProgressBarThread()
public javax.swing.JProgressBar getProgressBar()
public void setProgressBar(javax.swing.JProgressBar progressBar)
progressBar
- JProgressBarpublic int getProgressUpdateTime()
public int getMaximumValue()
public java.lang.String getProgressBarString()
public int getProgressUpdateValue()
public javax.swing.JDialog getParentDialog()
public void setProgressUpdateTime(int progressUpdateTime)
progressUpdateTime
- intpublic void setMaximumValue(int maximumValue)
maximumValue
- intpublic void setProgressBarString(java.lang.String value)
value
- Stringpublic void setProgressUpdateValue(int progressUpdateValue)
progressUpdateValue
- intpublic void setParentDialog(javax.swing.JDialog parentDialog)
parentDialog
- JDialogpublic void setCustomCancelAction(javax.swing.Action a)
javax.swing.Action
to be executed on pressing the
cancel button. NOTE that the button's 'private' Action (defined
elsewhere in this class) will be executed first, and then the custom action
will be executed
a
- javax.swing.Action
to be executed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |