Public Member Functions | Static Public Attributes

alma.acs.logging.dialogs.main.LogToolBar Class Reference

Inherits javax::swing::JToolBar.

List of all members.

Public Member Functions

 LogToolBar (LogTypeHelper initialLogLvl, LogTypeHelper intialDiscardLvl)
void setEventHandler (ActionListener listener)
JComboBox getDiscardLevelCB ()
JComboBox getLogLevelCB ()
JButton getClearLogsBtn ()
JButton getPauseBtn ()
JButton getFiltersBtn ()
JButton getZoomBtn ()
boolean clickPauseBtn ()
boolean pause ()
boolean unpause ()
void setEnabled (boolean enabled)
boolean isPaused ()
void setZoomable (boolean zoomable)

Static Public Attributes

static final String pauseStr = "<HTML><FONT size=-2>Pause</FONT>"
static final String playStr = "<HTML><FONT size=-2>Play</FONT>"

Detailed Description

The toolbar of the main window

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.dialogs.main.LogToolBar.LogToolBar ( LogTypeHelper  initialLogLvl,
LogTypeHelper  intialDiscardLvl 
)

Constructor

Parameters:
initialLogLvl The initial log level to set in the CB
intialDiscardLvl The initial discard level to set in the COB

Member Function Documentation

boolean alma.acs.logging.dialogs.main.LogToolBar.clickPauseBtn (  ) 

The pause has been pressed Change the test and icon in the button.

Returns:
true if the button is in pause

References alma.acs.logging.dialogs.main.LogToolBar.getPauseBtn(), alma.acs.logging.dialogs.main.LogToolBar.pauseStr, and alma.acs.logging.dialogs.main.LogToolBar.playStr.

JButton alma.acs.logging.dialogs.main.LogToolBar.getClearLogsBtn (  ) 
Returns:
The button to clear the logs
JComboBox alma.acs.logging.dialogs.main.LogToolBar.getDiscardLevelCB (  ) 
JButton alma.acs.logging.dialogs.main.LogToolBar.getFiltersBtn (  ) 
Returns:
The filter button

Referenced by com.cosylab.logging.LoggingClient.enableFiltersWidgets().

JComboBox alma.acs.logging.dialogs.main.LogToolBar.getLogLevelCB (  ) 
Returns:
The log level CB

Referenced by alma.acs.logging.dialogs.main.LogToolBar.setEnabled().

JButton alma.acs.logging.dialogs.main.LogToolBar.getPauseBtn (  ) 
JButton alma.acs.logging.dialogs.main.LogToolBar.getZoomBtn (  ) 
Returns:
The zoom button
boolean alma.acs.logging.dialogs.main.LogToolBar.isPaused (  ) 
Returns:
true if the play/pause button is pressed

Referenced by com.cosylab.logging.LoggingClient.isPaused().

boolean alma.acs.logging.dialogs.main.LogToolBar.pause (  ) 

Set the play/pause button in pause mode

Returns:
The status of the button previous of the command (true means pasused)

References alma.acs.logging.dialogs.main.LogToolBar.getPauseBtn(), and alma.acs.logging.dialogs.main.LogToolBar.playStr.

Referenced by com.cosylab.logging.LoggingClient.pause().

void alma.acs.logging.dialogs.main.LogToolBar.setEnabled ( boolean  enabled  ) 

Enable/Disable all the control in the GUI than can cause the invalidation of the logs

Parameters:
enabled If true the controls are enabled

References alma.acs.logging.dialogs.main.LogToolBar.getDiscardLevelCB(), and alma.acs.logging.dialogs.main.LogToolBar.getLogLevelCB().

Referenced by com.cosylab.logging.LoggingClient.errorAcknowledged(), com.cosylab.logging.LoggingClient.setEnabled(), and com.cosylab.logging.LoggingClient.showErrorMessage().

void alma.acs.logging.dialogs.main.LogToolBar.setEventHandler ( ActionListener  listener  ) 

Set the event handler for the widgets in the toolbar

Parameters:
listener The action listener
void alma.acs.logging.dialogs.main.LogToolBar.setZoomable ( boolean  zoomable  ) 

Set the state of the zoom button

Parameters:
zoomable If true the zoom button is enabled.
boolean alma.acs.logging.dialogs.main.LogToolBar.unpause (  ) 

Unpause the play/pause button

Returns:
The status of the button previous of the command (true means pasused)

References alma.acs.logging.dialogs.main.LogToolBar.getPauseBtn(), and alma.acs.logging.dialogs.main.LogToolBar.pauseStr.

Referenced by com.cosylab.logging.LoggingClient.resume().


Member Data Documentation

final String alma.acs.logging.dialogs.main.LogToolBar.pauseStr = "<HTML><FONT size=-2>Pause</FONT>" [static]
final String alma.acs.logging.dialogs.main.LogToolBar.playStr = "<HTML><FONT size=-2>Play</FONT>" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties