

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() |
The label showing a status message.
After the timeout elapses without adding any other message, the label is cleared;
| alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::StatusMessageTF | ( | ) | [inline] |
References timer.
| 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
| 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().
final Color alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::statusMessageFgColor = getForeground() [private] |
The foreground of the statusMessage label
Referenced by showMessage().
final int alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::TIMEOUT = 10000 [private] |
The timeout to clear the label
Timer alma::acsplugins::alarmsystem::gui::statusline::StatusMessageTF::timer = new Timer(TIMEOUT,this) [private] |
The time to clear the label
Referenced by actionPerformed(), showMessage(), and StatusMessageTF().
1.6.2