|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.components.DasProgressPanel
public class DasProgressPanel
| Field Summary |
|---|
| Fields inherited from interface org.das2.util.monitor.ProgressMonitor |
|---|
NULL, SIZE_INDETERMINATE |
| Constructor Summary | |
|---|---|
DasProgressPanel(java.lang.String label)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Notifies the ProgressMonitor that the task
being monitored should be canceled. |
static DasProgressPanel |
createComponentPanel(DasCanvasComponent component,
java.lang.String initialMessage)
|
static DasProgressPanel |
createComponentPanel(DasCanvas canvas,
java.lang.String initialMessage)
|
static DasProgressPanel |
createFramed(java.lang.String label)
|
void |
finished()
Notifies the ProgressMonitor that the task
being monitored has finished. |
java.awt.Component |
getComponent()
returns the JPanel component. |
java.lang.Exception |
getConsumer()
|
java.lang.String |
getLabel()
Return the label string displayed. |
java.lang.Exception |
getSource()
|
long |
getTaskProgress()
Returns the current progress of the monitored task. |
long |
getTaskSize()
|
boolean |
isCancelled()
Returns true if the operation being tracked
should be cancelled. |
boolean |
isFinished()
true if the process has indicated that it is finished |
boolean |
isStarted()
true if the process has indicated that it has started. |
boolean |
isValidateRoot()
Returning true here keeps the progress bar from forcing the whole canvas to repaint when the label of the progress bar changes. |
boolean |
isVisible()
|
void |
setAdditionalInfo(java.lang.String s)
Deprecated. |
void |
setLabel(java.lang.String label)
Set a consise string that describes the task being performed. |
void |
setProgressMessage(java.lang.String message)
Provides additional feedback as to what's going on in the process. |
void |
setShowProgressRate(boolean showProgressRate)
Setter for property showProgressRate. |
void |
setTaskProgress(long position)
Notifies the ProgressMonitor of a change in the progress of the task. |
void |
setTaskSize(long taskSize)
Sets the maximum value for the task progress of this ProgressMonitor. |
void |
setVisible(boolean visible)
|
void |
started()
Notifies the ProgressMonitor that the task
being monitored has started. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DasProgressPanel(java.lang.String label)
| Method Detail |
|---|
public java.awt.Component getComponent()
public static DasProgressPanel createComponentPanel(DasCanvasComponent component,
java.lang.String initialMessage)
public static DasProgressPanel createComponentPanel(DasCanvas canvas,
java.lang.String initialMessage)
public boolean isValidateRoot()
public static DasProgressPanel createFramed(java.lang.String label)
public void setLabel(java.lang.String label)
ProgressMonitor
setLabel in interface ProgressMonitorpublic java.lang.String getLabel()
ProgressMonitor
getLabel in interface ProgressMonitorpublic void finished()
ProgressMonitorProgressMonitor that the task
being monitored has finished.
finished in interface ProgressMonitor
public void setTaskProgress(long position)
throws java.lang.IllegalStateException
ProgressMonitor
setTaskProgress in interface ProgressMonitorposition - the current task position
java.lang.IllegalStateException@Deprecated public void setAdditionalInfo(java.lang.String s)
ProgressMonitor
setAdditionalInfo in interface ProgressMonitorpublic long getTaskProgress()
ProgressMonitor
getTaskProgress in interface ProgressMonitorpublic long getTaskSize()
getTaskSize in interface ProgressMonitorpublic void setTaskSize(long taskSize)
ProgressMonitorProgressMonitor.
setTaskSize in interface ProgressMonitortaskSize - maximum value for the task progress. A taskSize of -1 indicates the taskSize is indeterminate.public void setVisible(boolean visible)
public boolean isVisible()
public void started()
ProgressMonitorProgressMonitor that the task
being monitored has started. If the ProgressMonitor
is in a cancelled state when this method is called, that
ProgressMonitor should be 'uncancelled'.
started in interface ProgressMonitorpublic void cancel()
ProgressMonitorProgressMonitor that the task
being monitored should be canceled. After this method is
called, implementations should return true on
any subsequent calls to ProgressMonitor.isCancelled() and should
throw an IllegalStateException on any subsequent calls to
ProgressMonitor.setTaskProgress(long).
cancel in interface ProgressMonitorpublic boolean isCancelled()
ProgressMonitortrue if the operation being tracked
should be cancelled.
isCancelled in interface ProgressMonitortrue if the operation being tracked
should be cancelled.public java.lang.Exception getSource()
public java.lang.Exception getConsumer()
public void setShowProgressRate(boolean showProgressRate)
showProgressRate - New value of property showProgressRate.public java.lang.String toString()
toString in class java.lang.Objectpublic void setProgressMessage(java.lang.String message)
ProgressMonitor
setProgressMessage in interface ProgressMonitormessage - the message describing the state of progress.public boolean isStarted()
ProgressMonitor
isStarted in interface ProgressMonitorpublic boolean isFinished()
ProgressMonitor
isFinished in interface ProgressMonitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||