|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.GUIMediator
This class acts as a central point of access for all gui components, a sort of "hub" for the frontend. This should be the only common class that all frontend components have access to, reducing the overall dependencies and therefore increasing the modularity of the code.
Any functions or services that should be accessible to multiple classes should be added to this class. These currently include such functions as easily displaying standardly-formatted messages to the user, obtaining locale-specific strings, and obtaining image resources, among others.
All of the methods in this class should be called from the event- dispatch (Swing) thread.
Field Summary | |
static int |
CONNECTIONS_INDEX
Constant for the index of the connections tab in the main application window. |
static int |
LIBRARY_INDEX
Constant for the index of the library tab in the main application window. |
static int |
MONITOR_INDEX
Constant for the index of the monitor tab in the main application window. |
static int |
NO_OPTION
Constant for when the user selects the no button in a message giving the user a yes and a no option. |
static int |
SEARCH_INDEX
Constant for the index of the search tab in the main application window. |
static int |
SHOPPING_INDEX
Constant for the index of the shopping tab in the main application window. |
static int |
YES_OPTION
Constant for when the user selects the yes button in a message giving the user a yes and a no option. |
Method Summary | |
static void |
addFinalizeListener(FinalizeListener fin)
Adds the FinalizeListener class to the list of classes that should be notified of finalize events. |
void |
addNewLibraryFolder()
Tells the library to add a new folder to the currently selected folder. |
static void |
addNotify()
Shows the user notification area. |
static void |
addRefreshListener(RefreshListener listener)
Adds the specified RefreshListener instance to the list of listeners to be notified when a UI refresh event occurs. |
void |
addSharedLibraryFolder()
Tells the library to add a new top-level (shared) folder. |
static void |
addThemeObserver(ThemeObserver observer)
Adds the specified ThemeObserver instance to the list of ThemeObservers that should be notified whenever the theme changes. |
void |
audioFileDoubleClicked()
Notification that an audio file has been double-clicked. |
void |
clearConnections()
Clear the connections in the connection view. |
void |
clearLibrary()
Tells the library to update the shared directories that it displays. |
static void |
close()
Determines the appropriate shutdown behavior based on user settings. |
void |
connect()
Disconnects the user from the network. |
void |
deleteLibraryFile()
Tells the library to delete the selected file(s). |
void |
disconnect()
Connects the user to the network. |
static javax.swing.JFrame |
getAppFrame()
Returns the main application JFrame instance. |
static java.awt.Point |
getAppLocation()
Returns a Point instance containing the x, y position of the wrapped |
static java.awt.Dimension |
getAppSize()
Returns a Dimension instance containing the dimensions of the wrapped JFrame. |
int |
getCurrentDownloads()
Returns the total number of currently active downloads. |
int |
getCurrentUploads()
Returns the total number of currently active uploads. |
static java.awt.Component |
getHorizontalSeparator()
Returns a Component standardly sized for horizontal separators. |
static javax.swing.LookAndFeel |
getInitialLookAndFeel()
Returns the look and feel for when the application first loaded. |
com.limegroup.gnutella.gui.MainFrame |
getMainFrame()
Returns the MainFrame instance. |
static java.awt.Component |
getMainOptionsComponent()
Gets a handle to the options window main JComponent instance. |
com.limegroup.gnutella.RouterService |
getRouter()
Returns the router service variable for other classes to access. |
static java.awt.Point |
getScreenCenterPoint(java.awt.Component comp)
Returns the point for the placing the specified component on the center of the screen. |
static java.lang.String |
getStringResource(java.lang.String resourceKey)
Returns the locale-specific String from the resource manager. |
static javax.swing.ImageIcon |
getThemeImage(java.lang.String name)
Serves as a single point of access for any icons used in the program. |
int |
getTotalDownloads()
Returns the total number of downloads for this session. |
int |
getTotalUploads()
Returns the total number of uploads for this session. |
static java.net.URL |
getURLResource(java.lang.String FILE_NAME)
Returns a new URL instance for the specified file name. |
static java.awt.Component |
getVerticalSeparator()
Returns a Component standardly sized for vertical separators. |
void |
handleTabSelection(int SELECTED_TAB)
Notifies any necessary components that the specified tab has been selected. |
static boolean |
hasDonated()
Returns a boolean specifying whether or not the user has donated to the LimeWire project. |
static void |
hideNotify()
Hides the user notification area. |
static void |
hideView()
Hides the GUI by either sending it to the System Tray or minimizing the window. |
static GUIMediator |
instance()
Singleton accessor for this class. |
static boolean |
isAppVisible()
Returns a boolean specifying whether or not the wrapped JFrame is visible or not. |
static boolean |
isBrowserPageLoaded()
Returns whether or not the browser page has been successfully loaded. |
boolean |
isConnected()
Returns whether or not the client is currently connected to the Gnutella network. |
static boolean |
isConstructed()
Accessor for whether or not the GUIMediator has been constructed yet. |
static boolean |
isOptionsVisible()
Returns whether or not the options window is visible |
void |
launchAudio(java.io.File file)
Launches the specified audio file in the player. |
static int |
launchFile(java.io.File file)
Acts as a proxy for the Launcher class so that other classes only need to know about this mediator class. |
void |
launchLibraryFile()
Tells the library to launch the currently selected file(s). |
static int |
openURL(java.lang.String url)
Acts as a proxy for the Launcher class so that other classes only need to know about this mediator class. |
void |
refreshGUI()
Refreshes the various gui components that require refreshing. |
void |
refreshLibrary()
Tells the library to refresh its components. |
static void |
removeThemeObserver(ThemeObserver observer)
Removes the specified ThemeObserver instance from the list of ThemeObservers. |
void |
renameLibraryFolder()
Tells the library to rename the currently selected folder. |
static void |
restoreView()
Makes the GUI visible by either restoring it from the System Tray or the task bar. |
static void |
setAppVisible(boolean visible)
Specifies whether or not the main application window should be visible or not. |
void |
setCurrentTheme()
Sets the current theme pack in use by LimeWire. |
void |
setKeepAliveText(java.lang.String keepAlive)
Sets the "keep alive" value displayed to the user in the Connections tab. |
void |
setOptionsVisible(boolean visible)
Sets the visibility state of the options window. |
void |
setRouterService(com.limegroup.gnutella.RouterService routerService)
Sets the router service variable for other classes to access. |
void |
setSearching(boolean searching)
Sets the searching or not searching status of the application. |
static void |
setSplashScreenString(java.lang.String text)
Modifies the text displayed to the user in the splash screen to provide application loading information. |
void |
setStatisticsVisible(boolean visible)
Sets the visibility of the statistics window. |
void |
setTabVisible(int TAB_INDEX,
boolean VISIBLE)
Sets the visible/invisible state of the tab associated with the specified index. |
void |
setWindow(int index)
Sets the tab pane to display the given tab. |
static void |
showAboutWindow()
Shows the "About" menu with more information about the program. |
static void |
showConfirmMessage(java.lang.String messageKey)
Acts as a proxy for the MessageService class. |
static void |
showConfirmMessage(java.lang.String messageKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showConfirmMessage(java.lang.String messageKey,
java.lang.String message)
Acts as a proxy for the MessageService class. |
static void |
showConfirmMessage(java.lang.String messageKey,
java.lang.String message,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showConfirmMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey)
Acts as a proxy for the MessageService class. |
static void |
showConfirmMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageKey)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageKey,
java.lang.String message)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageKey,
java.lang.String message,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey)
Acts as a proxy for the MessageService class. |
static void |
showError(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showInternalError(java.lang.Throwable t)
Stub for calling showInternalError(t, null, Thread.currentThread()) |
static void |
showInternalError(java.lang.Throwable t,
java.lang.String detail)
Stub for calling showInternalError(t, detail, Thread.currentThread()) |
static void |
showInternalError(java.lang.Throwable t,
java.lang.String detail,
java.lang.Thread curThread)
Acts as a proxy for the MessageService class. |
static void |
showInternalError(java.lang.Throwable t,
java.lang.Thread curThread)
Stub for calling showInternalError(t, null, curThread) |
static void |
showMessage(java.lang.String messageKey)
Acts as a proxy for the MessageService class. |
static void |
showMessage(java.lang.String messageKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showMessage(java.lang.String messageKey,
java.lang.String message)
Acts as a proxy for the MessageService class. |
static void |
showMessage(java.lang.String messageKey,
java.lang.String message,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
static void |
showMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey)
Acts as a proxy for the MessageService class. |
static void |
showMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey,
com.limegroup.gnutella.settings.BooleanSetting ignore)
Acts as a proxy for the MessageService class. |
int |
showPasswordDialog(PasswordDialog dialog)
Displays the passed password dialog |
static int |
showYesNoMessage(java.lang.String messageKey)
Acts as a proxy for the MessageService class. |
static int |
showYesNoMessage(java.lang.String messageKey,
com.limegroup.gnutella.settings.IntSetting defaultValue)
Acts as a proxy for the MessageService class. |
static int |
showYesNoMessage(java.lang.String messageKey,
java.lang.String message)
Acts as a proxy for the MessageService class. |
static int |
showYesNoMessage(java.lang.String messageKey,
java.lang.String message,
com.limegroup.gnutella.settings.IntSetting defaultValue)
Acts as a proxy for the MessageService class. |
static int |
showYesNoMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey)
Acts as a proxy for the MessageService class. |
static int |
showYesNoMessage(java.lang.String messageStartKey,
java.lang.String message,
java.lang.String messageEndKey,
com.limegroup.gnutella.settings.IntSetting defaultValue)
Acts as a proxy for the MessageService class. |
static void |
shutdown()
Shutdown the program cleanly. |
static void |
shutdownAfterTransfers()
Shutdown the program cleanly after all transfers in progress are complete. |
void |
startTimer()
The host catcher and the statistics view need the backend to be initialized for these methods to be called. |
byte[] |
triggerSearch(java.lang.String query)
Trigger a search based on a string. |
void |
unshareLibraryFolder()
Tells the library to unshare the currently selected folder. |
static void |
updateNotify(java.lang.String imageFileName,
java.lang.String text)
Updates the icon and the text associated with the user notification area, such as the system tray on Windows. |
static void |
updateNotifyImage(java.lang.String imageFileName)
Updates the icon associated with the user notification area, such as the system tray on Windows. |
static void |
updateNotifyText(java.lang.String text)
Updates the text associated with the user notification area, such as the system tray on Windows. |
void |
updateTabIcon(int index)
Updates the icon at the specified tab index. |
void |
wakeupShoppingView()
Call the ShoppingView component to relayout itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SEARCH_INDEX
public static final int MONITOR_INDEX
public static final int CONNECTIONS_INDEX
public static final int LIBRARY_INDEX
public static final int SHOPPING_INDEX
public static final int YES_OPTION
public static final int NO_OPTION
Method Detail |
public static GUIMediator instance()
public static boolean isConstructed()
public final void startTimer()
public static final boolean isAppVisible()
public static final void setAppVisible(boolean visible)
visible
- specifies whether or not the application should be
made visible or notpublic static final java.awt.Dimension getAppSize()
public static final java.awt.Point getAppLocation()
public final com.limegroup.gnutella.gui.MainFrame getMainFrame()
public void wakeupShoppingView()
public static final javax.swing.JFrame getAppFrame()
public final com.limegroup.gnutella.RouterService getRouter()
public final void setRouterService(com.limegroup.gnutella.RouterService routerService)
routerService
- the RouterService instance for other
classes to accesspublic final void refreshGUI()
public void setOptionsVisible(boolean visible)
visible
- the visibility state to set the window topublic static boolean isOptionsVisible()
public static java.awt.Component getMainOptionsComponent()
public final void setStatisticsVisible(boolean visible)
visible
- the visibility state to set the window topublic final int showPasswordDialog(PasswordDialog dialog)
dialog
- The dialog box to be displayedpublic final void handleTabSelection(int SELECTED_TAB)
SELECTED_TAB
- the index of the tab that has been selectedpublic void setWindow(int index)
index
- the index of the tab to displaypublic void updateTabIcon(int index)
index
- the fixed index of the tab to updatepublic void clearConnections()
public void setKeepAliveText(java.lang.String keepAlive)
keepAlive
- a String representing the keep
alive to displaypublic byte[] triggerSearch(java.lang.String query)
query
- the query String
public int getTotalUploads()
public int getCurrentUploads()
public final int getTotalDownloads()
public final int getCurrentDownloads()
public final void addSharedLibraryFolder()
public final void addNewLibraryFolder()
public final void unshareLibraryFolder()
public final void renameLibraryFolder()
public final void launchLibraryFile()
public final void deleteLibraryFile()
public final void refreshLibrary()
public final void clearLibrary()
public static void hideView()
restoreView
public static void restoreView()
hideView
public static void close()
public static void shutdown()
public static void shutdownAfterTransfers()
hideView
public static final void showAboutWindow()
public static void updateNotifyImage(java.lang.String imageFileName)
imageFileName
- the name of the new image file to use,
preferably a file in and relative to the current directory,
as in "LimeWire.ico"public static void updateNotifyText(java.lang.String text)
text
- the new text to use for the user notification area for
such things as the system tray tooltip on Windowspublic static void updateNotify(java.lang.String imageFileName, java.lang.String text)
imageFileName
- the name of the new image file to use, preferably
a file in and relative to the current directory, as in "LimeWire.ico"text
- the new text to use for the user notification area for
such things as the system tray tooltip on Windowspublic static void hideNotify()
public static void addNotify()
public static final javax.swing.ImageIcon getThemeImage(java.lang.String name)
public static java.net.URL getURLResource(java.lang.String FILE_NAME)
FILE_NAME
- the name of the file to return a url for without path
information, as in "about.html"
public static final java.lang.String getStringResource(java.lang.String resourceKey)
public static final int showYesNoMessage(java.lang.String messageKey)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to display
public static final int showYesNoMessage(java.lang.String messageKey, com.limegroup.gnutella.settings.IntSetting defaultValue)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaydefaultValue
- the IntSetting to store/retrieve the default value
public static final int showYesNoMessage(java.lang.String messageKey, java.lang.String message)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filename
public static final int showYesNoMessage(java.lang.String messageKey, java.lang.String message, com.limegroup.gnutella.settings.IntSetting defaultValue)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenamedefaultValue
- the IntSetting to store/retrieve the defaultValue
public static final int showYesNoMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the message
public static final int showYesNoMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey, com.limegroup.gnutella.settings.IntSetting defaultValue)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messagedefaultValue
- the IntSetting that stores/retrieves the defaultValue
public static final void showMessage(java.lang.String messageKey)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaypublic static final void showMessage(java.lang.String messageKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displayignore
- the BooleanSetting that stores/retrieves whether or
not to display this message.public static final void showMessage(java.lang.String messageKey, java.lang.String message)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenamepublic static final void showMessage(java.lang.String messageKey, java.lang.String message, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenameignore
- the BooleanSetting that stores/retrieves whether or
not to display this message.public static final void showMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messagepublic static final void showMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messageignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showConfirmMessage(java.lang.String messageKey)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaypublic static final void showConfirmMessage(java.lang.String messageKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displayignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showConfirmMessage(java.lang.String messageKey, java.lang.String message)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenamepublic static final void showConfirmMessage(java.lang.String messageKey, java.lang.String message, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenameignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showConfirmMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messagepublic static final void showConfirmMessage(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messageignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showError(java.lang.String messageKey)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to display.public static final void showError(java.lang.String messageKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to display.ignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showError(java.lang.String messageKey, java.lang.String message)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenamepublic static final void showError(java.lang.String messageKey, java.lang.String message, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageKey parameter must be the key for a locale- specific message String and not a hard-coded value.
messageKey
- the key for the locale-specific message to displaymessage
- a second, non-locale-specific message to display, such
as a filenameignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showError(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messagepublic static final void showError(java.lang.String messageStartKey, java.lang.String message, java.lang.String messageEndKey, com.limegroup.gnutella.settings.BooleanSetting ignore)
The messageStartKey and the messageEndKey parameters must be keys for locale-specific message Strings and not a hard-coded values.
messageStartKey
- the key for the locale-specific message to
display at the beginning of the messagemessage
- a second, non-locale-specific message to display, such
as a filenamemessageEndKey
- the key for the locale-specific message to
display at the end of the messageignore
- the BooleanSetting for that stores/retrieves whether
or not to display this message.public static final void showInternalError(java.lang.Throwable t, java.lang.String detail, java.lang.Thread curThread)
t
- a Throwable object for displaying more information to the userdetail
- A detailed message to display with the errorcurThread
- the thread the error occured in.public static final void showInternalError(java.lang.Throwable t)
t
- a Throwable object for displaying more information to the userpublic static final void showInternalError(java.lang.Throwable t, java.lang.String detail)
t
- a Throwable object for displaying more information to the userdetail
- A detailed error message to display to the user.public static final void showInternalError(java.lang.Throwable t, java.lang.Thread curThread)
t
- a Throwable object for displaying more information to the usercurThread
- the thread the error occured inpublic static final int openURL(java.lang.String url) throws java.io.IOException
Opens the specified url in a browser.
url
- the url to open
java.io.IOException
- if the url cannot be loaded do to an IO problempublic static final int launchFile(java.io.File file) throws java.io.IOException
Launches the file specified in its associated application.
file
- a File instance denoting the abstract pathname
of the file to launch
java.io.IOException
- if the file cannot be launched do to an IO problempublic static final java.awt.Component getHorizontalSeparator()
public static final java.awt.Component getVerticalSeparator()
public void connect()
public void disconnect()
public static boolean hasDonated()
public void setTabVisible(int TAB_INDEX, boolean VISIBLE)
TAB_INDEX
- the index of the tab to make visible or invisibleVISIBLE
- the visible/invisible state to set the tab topublic static void setSplashScreenString(java.lang.String text)
text
- the text to displaypublic static java.awt.Point getScreenCenterPoint(java.awt.Component comp)
comp
- the Component to use for getting the relative
center point
public static void addFinalizeListener(FinalizeListener fin)
fin
- the FinalizeListener class that should be notifiedpublic void setSearching(boolean searching)
searching
- the searching status of the applicationpublic static void addRefreshListener(RefreshListener listener)
public boolean isConnected()
public static javax.swing.LookAndFeel getInitialLookAndFeel()
public void launchAudio(java.io.File file)
file
- the File instance to launchpublic void audioFileDoubleClicked()
public static boolean isBrowserPageLoaded()
public static void addThemeObserver(ThemeObserver observer)
observer
- the ThemeObserver to add to the notification
listpublic static void removeThemeObserver(ThemeObserver observer)
observer
- the ThemeObserver to remove from the
notification listpublic void setCurrentTheme()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |