|
Treeviz 0.37 2010-10-17 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.gui.ProgressTracker
public class ProgressTracker
ProgressTracker implements ProgressObserver without providing visual components for the user.
| Constructor Summary | |
|---|---|
ProgressTracker(java.lang.String message,
java.lang.String note)
Creates new form ProgressTracker |
|
ProgressTracker(java.lang.String message,
java.lang.String note,
int min,
int max)
Creates new form ProgressTracker |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the operation. |
void |
close()
Indicate that the operation is complete. |
void |
complete()
Indicate that the operation is complete. |
java.lang.String |
getError()
Specifies the error message that is displayed along with the progress message. |
int |
getMaximum()
Returns the maximum value -- the higher end of the progress value. |
int |
getMinimum()
Returns the minimum value -- the lower end of the progress value. |
javax.swing.BoundedRangeModel |
getModel()
|
java.lang.String |
getNote()
Specifies the additional note that is displayed along with the progress message. |
int |
getProgress()
Returns the progress of the operation being monitored. |
java.lang.String |
getWarning()
Specifies the warning message that is displayed along with the progress message. |
boolean |
isCanceled()
Returns true if the user has hit the Cancel button in the progress dialog. |
boolean |
isClosed()
Returns true if the ProgressTracker is closed. |
boolean |
isCompleted()
Returns true if the operation is completed. |
boolean |
isIndeterminate()
Returns true if the progress observer is set to indeterminate. |
void |
setCancelable(boolean b)
Set cancelable to false if the operation can not be canceled. |
void |
setDoCancel(java.lang.Runnable doCancel)
The specified Runnable is executed when the user presses the cancel button. |
void |
setError(java.lang.String message)
Specifies the additional error message that is displayed along with the progress message. |
void |
setIndeterminate(boolean newValue)
Sets the progress observer to indeterminate. |
void |
setMaximum(int m)
Specifies the maximum value. |
void |
setMinimum(int m)
Specifies the minimum value. |
void |
setModel(javax.swing.BoundedRangeModel brm)
|
void |
setNote(java.lang.String note)
Specifies the additional note that is displayed along with the progress message. |
void |
setProgress(int nv)
Indicate the progress of the operation being monitored. |
void |
setWarning(java.lang.String message)
Specifies the additional warning message that is displayed along with the progress message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressTracker(java.lang.String message,
java.lang.String note,
int min,
int max)
public ProgressTracker(java.lang.String message,
java.lang.String note)
| Method Detail |
|---|
public void setIndeterminate(boolean newValue)
ProgressObserver
setIndeterminate in interface ProgressObserverpublic void setModel(javax.swing.BoundedRangeModel brm)
setModel in interface ProgressObserverpublic javax.swing.BoundedRangeModel getModel()
getModel in interface ProgressObserverpublic void setCancelable(boolean b)
setCancelable in interface ProgressObserverpublic void setDoCancel(java.lang.Runnable doCancel)
setDoCancel in interface ProgressObserverpublic void setProgress(int nv)
setProgress in interface ProgressObservernv - an int specifying the current value, between the
maximum and minimum specified for this componentsetMinimum(int),
setMaximum(int),
close()public int getProgress()
getProgress in interface ProgressObserverpublic void close()
close in interface ProgressObserverpublic int getMinimum()
getMinimum in interface ProgressObserversetMinimum(int)public void setMinimum(int m)
setMinimum in interface ProgressObserverm - an int specifying the minimum valuegetMinimum()public int getMaximum()
getMaximum in interface ProgressObserversetMaximum(int)public void setMaximum(int m)
setMaximum in interface ProgressObserverm - an int specifying the maximum valuegetMaximum()public boolean isCanceled()
isCanceled in interface ProgressObserverpublic boolean isClosed()
isClosed in interface ProgressObserverpublic void cancel()
cancel in interface ProgressObserverpublic void setNote(java.lang.String note)
setNote in interface ProgressObservernote - a String specifying the note to displaygetNote()public java.lang.String getNote()
getNote in interface ProgressObserversetNote(java.lang.String)public boolean isIndeterminate()
ProgressObserver
isIndeterminate in interface ProgressObserverpublic void complete()
ProgressObserver
complete in interface ProgressObserverpublic boolean isCompleted()
ProgressObserver
isCompleted in interface ProgressObserverpublic void setWarning(java.lang.String message)
ProgressObserver
setWarning in interface ProgressObservermessage - a String specifying the message to display, or null
if there is no warning.ProgressObserver.getWarning()public java.lang.String getWarning()
ProgressObserver
getWarning in interface ProgressObserverpublic void setError(java.lang.String message)
ProgressObserver
setError in interface ProgressObservermessage - a String specifying the message to display, or null
if there is no error.ProgressObserver.getWarning()public java.lang.String getError()
ProgressObserver
getError in interface ProgressObserver
|
Copyright 2007-2008 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||