public class CmsProgressThread
extends java.lang.Thread
A_CmsListDialog) in the background
and to show the progress of building to the user.To work correctly the operations while building the list have to update the actual progress.
| 构造器和说明 |
|---|
CmsProgressThread(A_CmsListDialog list,
java.lang.String key,
java.util.Locale locale)
Constructs a new progress thread with the given name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDescription()
Returns the description to show for the progress.
|
java.lang.Throwable |
getError()
Returns the error exception in case there was an error during the execution of
this thread, null otherwise.
|
long |
getFinishTime()
Returns the time the thread was finished.
|
java.lang.String |
getKey()
Returns the key of this thread.
|
A_CmsListDialog |
getList()
Returns the list of the progress bar.
|
java.util.Locale |
getLocale()
Returns the locale to use for this thread.
|
int |
getProgress()
Returns the progress.
|
java.lang.String |
getResult()
Returns the finished result as HTML of the list.
|
long |
getRuntime()
Returns the time this report has been running.
|
long |
getStartTime()
Returns the time the thread has started.
|
void |
run() |
void |
setDescription(java.lang.String description)
Sets the description to show for the progress.
|
void |
setLocale(java.util.Locale locale)
Sets the locale to use for this thread.
|
void |
setProgress(int progress)
Sets the progress.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic CmsProgressThread(A_CmsListDialog list, java.lang.String key, java.util.Locale locale)
list - the list to use for the progress to displaykey - the key of the threadlocale - the locale to use for this threadpublic java.lang.String getDescription()
public java.lang.Throwable getError()
public long getFinishTime()
public java.lang.String getKey()
public A_CmsListDialog getList()
public java.util.Locale getLocale()
public int getProgress()
public java.lang.String getResult()
public long getRuntime()
public long getStartTime()
public void run()
run 在接口中 java.lang.Runnablerun 在类中 java.lang.ThreadThread.run()public void setDescription(java.lang.String description)
description - the description to show for the progress to setpublic void setLocale(java.util.Locale locale)
locale - the locale to use for this thread to setpublic void setProgress(int progress)
progress - the progress to set