alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF Class Reference

Inheritance diagram for alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF:
Inheritance graph
[legend]
Collaboration diagram for alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatusMessageTF ()
void showMessage (final String mesg, final boolean red)
void actionPerformed (ActionEvent e)

Private Attributes

final int TIMEOUT = 10000
Timer timer = new Timer(TIMEOUT,this)
final Color statusMessageFgColor = getForeground()

Detailed Description

The label showing a status message.

After the timeout elapses without adding any other message, the label is cleared;

Author:
acaproni

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::StatusMessageTF (  )  [inline]

References timer.


Member Function Documentation

void alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::actionPerformed ( ActionEvent  e  )  [inline]

References timer.

void alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::showMessage ( final String  mesg,
final boolean  red 
) [inline]

Show a message in the label

Parameters:
mesg The not null nor empty message to show
red true if the string must be shown in red

References statusMessageFgColor, and timer.

Referenced by alma::acsplugins::alarmsystem::gui::statusline::StatusLine::showMessage().


Member Data Documentation

The foreground of the statusMessage label

Referenced by showMessage().

The timeout to clear the label

The time to clear the label

Referenced by actionPerformed(), showMessage(), and StatusMessageTF().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2