

Public Member Functions | |
| SoundWidget (AlarmSound alarmSound) | |
| void | played () |
| void | playing (int priority) |
| void | reset () |
| void | actionPerformed (ActionEvent e) |
Private Member Functions | |
| void | toggleSoundButton () |
Private Attributes | |
| final AlarmSound | alarmSound |
Static Private Attributes | |
| static final ImageIcon | soundSelIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound.png")) |
| static final ImageIcon | soundUnselIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound_mute.png")) |
| static final ImageIcon | soundPlayIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound_playing.png")) |
This class encapsulates the sound button of the toolbar
| alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::SoundWidget | ( | AlarmSound | alarmSound | ) | [inline] |
| void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References toggleSoundButton().
| void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::played | ( | ) | [inline] |
Implements alma::acsplugins::alarmsystem::gui::sound::AlarmSoundListener.
References toggleSoundButton().
| void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::playing | ( | int | priority | ) | [inline] |
Implements alma::acsplugins::alarmsystem::gui::sound::AlarmSoundListener.
References soundPlayIcon.
| void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::reset | ( | ) | [inline] |
Implements alma::acsplugins::alarmsystem::gui::sound::AlarmSoundListener.
References toggleSoundButton().
| void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::toggleSoundButton | ( | ) | [inline, private] |
set the icon of the sound button depending on the state of the button
References alarmSound, alma::acsplugins::alarmsystem::gui::sound::AlarmSound::inhibit(), soundSelIcon, and soundUnselIcon.
Referenced by actionPerformed(), played(), reset(), and SoundWidget().
The object to play audibles for alarms
This class checks the sound level to enable/disable the popup menu item to inhibit sounds
Referenced by toggleSoundButton().
final ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::soundPlayIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound_playing.png")) [static, private] |
The icon shown in the button when a sound is palying
Referenced by playing().
final ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::soundSelIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound.png")) [static, private] |
The icon shown in the button when the sound is selected
Referenced by SoundWidget(), and toggleSoundButton().
final ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::soundUnselIcon = new ImageIcon(SoundWidget.class.getResource("/alma/acsplugins/alarmsystem/gui/resources/sound_mute.png")) [static, private] |
The icon shown in the button when the sound is selected
Referenced by toggleSoundButton().
1.6.2