com.isti.quakewatch.util
Interface ConnStatusInterface

All Known Implementing Classes:
ConnectionStatusPanel

public interface ConnStatusInterface

Class ConnStatusInterface defines access to a panel for showing the ongoing status of a connection.


Field Summary
static int CLEAR_COLOR_IDX
           
static int GREEN_COLOR_IDX
           
static int NULL_COLOR_IDX
           
static int RED_COLOR_IDX
           
static int YELLOW_COLOR_IDX
           
 
Method Summary
 void autoClearPopupDialog()
          Clears any displayed popup dialog if the user has not requested that it be shown.
 void hidePopupDialog()
          Hides the popup dialog.
 void setData(java.lang.String textStr, java.lang.String popupStr)
          Sets the message strings for this panel and the popup dialog.
 void setData(java.lang.String textStr, java.lang.String popupStr, int symColorIdx)
          Sets the message strings for this panel and the popup dialog, as well as the color for the symbol on the panel.
 void setRefocusComponent(java.lang.Object compObj)
          Sets the component that is to receive focus after the popup dialog is cleared.
 void showPopupDialog()
          Displays the popup dialog showing extra status information.
 void userRequestShowPopupDialog()
          Displays the popup dialog showing extra status information in response to a user request.
 

Field Detail

GREEN_COLOR_IDX

static final int GREEN_COLOR_IDX
See Also:
Constant Field Values

YELLOW_COLOR_IDX

static final int YELLOW_COLOR_IDX
See Also:
Constant Field Values

RED_COLOR_IDX

static final int RED_COLOR_IDX
See Also:
Constant Field Values

CLEAR_COLOR_IDX

static final int CLEAR_COLOR_IDX
See Also:
Constant Field Values

NULL_COLOR_IDX

static final int NULL_COLOR_IDX
See Also:
Constant Field Values
Method Detail

setData

void setData(java.lang.String textStr,
             java.lang.String popupStr,
             int symColorIdx)
Sets the message strings for this panel and the popup dialog, as well as the color for the symbol on the panel.

Parameters:
textStr - text for panel, or null for no change.
popupStr - text for popup, or null for no change.
symColorIdx - index of color for symbol (one of the '..._COLOR_IDX' values), or 'NULL_COLOR_IDX' for no change.

setData

void setData(java.lang.String textStr,
             java.lang.String popupStr)
Sets the message strings for this panel and the popup dialog.

Parameters:
textStr - text for panel, or null for no change.
popupStr - text for popup, or null for no change.

setRefocusComponent

void setRefocusComponent(java.lang.Object compObj)
Sets the component that is to receive focus after the popup dialog is cleared.

Parameters:
compObj - the 'Component' object to receive focus.

showPopupDialog

void showPopupDialog()
Displays the popup dialog showing extra status information. The dialog is non-modal.


userRequestShowPopupDialog

void userRequestShowPopupDialog()
Displays the popup dialog showing extra status information in response to a user request. The dialog is non-modal.


hidePopupDialog

void hidePopupDialog()
Hides the popup dialog.


autoClearPopupDialog

void autoClearPopupDialog()
Clears any displayed popup dialog if the user has not requested that it be shown.