com.limegroup.gnutella.gui
Class MessageService

java.lang.Object
  extended bycom.limegroup.gnutella.gui.MessageService

public final class MessageService
extends java.lang.Object

This class handles displaying messages to the user.


Field Summary
static int FORGET_ANSWER
          Constant for when the 'Always use this answer' checkbox does not want to remember the answer.
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 REMEMBER_ANSWER
          Constant for when the 'Always use this answer' checkbox wants to remember the answer.
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 java.awt.Component getParentComponent()
          Convenience method for determining which window should be the parent of message windows.
static MessageService instance()
          Instance accessor for the MessageService.
 void showMessage(java.awt.Component toDisplay)
          Displays a standardly formatted information message with the specified Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YES_OPTION

public static final int YES_OPTION
Constant for when the user selects the yes button in a message giving the user a yes and a no option.

See Also:
Constant Field Values

NO_OPTION

public static final int NO_OPTION
Constant for when the user selects the no button in a message giving the user a yes and a no option.

See Also:
Constant Field Values

REMEMBER_ANSWER

public static final int REMEMBER_ANSWER
Constant for when the 'Always use this answer' checkbox wants to remember the answer.

See Also:
Constant Field Values

FORGET_ANSWER

public static final int FORGET_ANSWER
Constant for when the 'Always use this answer' checkbox does not want to remember the answer.

See Also:
Constant Field Values
Method Detail

instance

public static MessageService instance()
Instance accessor for the MessageService.


showMessage

public final void showMessage(java.awt.Component toDisplay)
Displays a standardly formatted information message with the specified Component.

Parameters:
toDisplay - the object to display in the message

getParentComponent

public static java.awt.Component getParentComponent()
Convenience method for determining which window should be the parent of message windows.

Returns:
the Component that should act as the parent of message windows