alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget Class Reference

Inheritance diagram for alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget:
Inheritance graph
[legend]
Collaboration diagram for alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget:
Collaboration graph
[legend]

List of all members.

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"))

Detailed Description

This class encapsulates the sound button of the toolbar

Author:
acaproni
Since:
ACS 8.1.0

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::SoundWidget ( AlarmSound  alarmSound  )  [inline]

Member Function Documentation

void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::actionPerformed ( ActionEvent  e  )  [inline]
See also:
ActionListener

References toggleSoundButton().

void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::played (  )  [inline]
See also:
AlarmSoundListener

Implements alma::acsplugins::alarmsystem::gui::sound::AlarmSoundListener.

References toggleSoundButton().

void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::playing ( int  priority  )  [inline]
See also:
AlarmSoundListener

Implements alma::acsplugins::alarmsystem::gui::sound::AlarmSoundListener.

References soundPlayIcon.

void alma::acsplugins::alarmsystem::gui::toolbar::SoundWidget::reset (  )  [inline]
See also:
AlarmSoundListener

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(), and reset().


Member Data Documentation

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().


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

Generated by  doxygen 1.6.2