|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UpdateStatusListener
An interface through which update services can report information back to the MMOUI Manager regarding update status.
| Nested Class Summary | |
|---|---|
static class |
UpdateStatusListener.Status
Status codes indicating how the GUI should display the related Updatable component. |
| Method Summary | |
|---|---|
void |
setProgress(int progress)
Sets the current progress as displayed on the progress bar. |
void |
setProgressBarOverride(javax.swing.JComponent object)
Overrides the progress bar by hiding it and replacing it with the specified component. |
void |
setProgressBounds(int min,
int max)
Sets the bounds of progress on the displayed progress bar. |
void |
setStatus(java.lang.String text)
A convenience method to set the displayed status text. |
void |
setStatus(java.lang.String text,
UpdateStatusListener.Status status)
Sets the displayed status of this Updatable component. |
| Method Detail |
|---|
void setStatus(java.lang.String text)
setStatus() have occurred).
text - The text to displaysetStatus(java.lang.String, com.mmoui.manager.services.UpdateStatusListener.Status)
void setStatus(java.lang.String text,
UpdateStatusListener.Status status)
Updatable component.
text - The text to display on the status linestatus - The scheme to display indicating what type of status
the process is currently in.void setProgressBarOverride(javax.swing.JComponent object)
JButton
derivatives in mind.
object - The JComponent that will replace the
progress bar, or null if the current override component
should be removed and replaced with the standard progress bar
void setProgress(int progress)
throws java.lang.IllegalArgumentException
progress - The current progress, in relation to the minimum and
maximum bounds that have been set.
java.lang.IllegalArgumentException - if the progress is outside of the
bounds that have been setsetProgressBounds(int, int)
void setProgressBounds(int min,
int max)
Sets the bounds of progress on the displayed progress bar. If setting the bounds will cause the current progress to go out of bounds, the current progress will be set to the minimum or maximum, depending on whether the progress went below the minimum or above the maximum, respectively.
If min is equal to max, the progress
bar will be put into an indeterminate state.
min - The minimum progressmax - The maximum progresssetProgress(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||