Package jmri.jmrit.vsdecoder
Class ToggleSoundEvent
- java.lang.Object
-
- jmri.jmrit.vsdecoder.SoundEvent
-
- jmri.jmrit.vsdecoder.ToggleSoundEvent
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class ToggleSoundEvent extends SoundEvent
Toggle Sound Event.
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.vsdecoder.SoundEvent
SoundEvent.ButtonType
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ButtonTrigger
bt
(package private) javax.swing.JToggleButton
button
(package private) Trigger
t
-
Fields inherited from class jmri.jmrit.vsdecoder.SoundEvent
button_label, button_trigger_list, buttontype, engine_pane, event_name, my_sound, name, parent, trigger_list
-
-
Constructor Summary
Constructors Constructor Description ToggleSoundEvent()
ToggleSoundEvent(java.lang.String n)
ToggleSoundEvent(java.lang.String n, java.lang.String bl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getButton()
java.lang.String
getButtonLabel()
org.jdom2.Element
getXml()
boolean
hasButton()
void
setButton(javax.swing.JToggleButton b)
void
setButtonLabel(java.lang.String bl)
protected ButtonTrigger
setupButtonAction(org.jdom2.Element te)
void
setXml(org.jdom2.Element el)
void
setXml(org.jdom2.Element el, VSDFile vf)
-
Methods inherited from class jmri.jmrit.vsdecoder.SoundEvent
addTrigger, addXmlTrigger, getButtonType, getEnginePane, getEventName, getName, getParent, getSound, getTrigger, hasEnginePane, propertyChange, setButton, setEnginePane, setEventName, setName, setParent, setSound
-
-
-
-
Field Detail
-
button
javax.swing.JToggleButton button
-
bt
ButtonTrigger bt
-
-
Constructor Detail
-
ToggleSoundEvent
public ToggleSoundEvent()
-
ToggleSoundEvent
public ToggleSoundEvent(java.lang.String n)
-
ToggleSoundEvent
public ToggleSoundEvent(java.lang.String n, java.lang.String bl)
-
-
Method Detail
-
hasButton
public boolean hasButton()
- Overrides:
hasButton
in classSoundEvent
-
setButton
public void setButton(javax.swing.JToggleButton b)
-
getButton
public javax.swing.JComponent getButton()
- Overrides:
getButton
in classSoundEvent
-
setButtonLabel
public void setButtonLabel(java.lang.String bl)
- Overrides:
setButtonLabel
in classSoundEvent
-
getButtonLabel
public java.lang.String getButtonLabel()
- Overrides:
getButtonLabel
in classSoundEvent
-
setupButtonAction
protected ButtonTrigger setupButtonAction(org.jdom2.Element te)
- Overrides:
setupButtonAction
in classSoundEvent
-
getXml
public org.jdom2.Element getXml()
- Overrides:
getXml
in classSoundEvent
-
setXml
public void setXml(org.jdom2.Element el)
- Overrides:
setXml
in classSoundEvent
-
setXml
public void setXml(org.jdom2.Element el, VSDFile vf)
- Overrides:
setXml
in classSoundEvent
-
-