|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.update.gui.UpdateCallback
This class handles all gui callbacks from the udpate code, displaying messages and such to the user.
Constructor Summary | |
UpdateCallback()
|
Method Summary | |
static void |
displayErrorMessage(java.lang.String error)
Displays a message to the user indicating that the update has failed for some reason. |
static void |
displayMessage(java.lang.String message)
Diplays a message to the user. |
static void |
hideProgressWindow()
Hides the progress window and disposes of it. |
static void |
setDownloadFile(java.lang.String text)
Sets the text displayed in the update progress window. |
static void |
setDownloadSize(int size)
Sets the size of the download for calculating the percent complete. |
static void |
showProgressWindow()
Shows the window to the user that shows the progress of the update. |
static boolean |
showUpdatePrompt(java.lang.String message)
Shows the message window asking the user if they would like to update to the newer version. |
static boolean |
showUpdatePromptWithParentFrame(java.lang.String message)
|
static void |
updateProgressWindow(int amountRead)
Updates the progress window with the new amount of the file that has been read. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UpdateCallback()
Method Detail |
public static final boolean showUpdatePrompt(java.lang.String message)
message
- the message to display to the user regarding
the update.
public static final boolean showUpdatePromptWithParentFrame(java.lang.String message)
public static final void showProgressWindow()
public static final void setDownloadFile(java.lang.String text)
text
- the text to display in the progress windowpublic static final void setDownloadSize(int size)
size
- the size of the download in bytespublic static final void hideProgressWindow()
public static final void updateProgressWindow(int amountRead)
amountRead
- the amount of the file that has been read in bytespublic static final void displayErrorMessage(java.lang.String error)
error
- String beginning with a gerund and ending
with a period that specifies the type of error for display
to the userpublic static final void displayMessage(java.lang.String message)
message
- the message to diplay
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |