Package jmri.jmrit.vsdecoder
Class EngineSoundEvent
- java.lang.Object
-
- jmri.jmrit.vsdecoder.SoundEvent
-
- jmri.jmrit.vsdecoder.EngineSoundEvent
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class EngineSoundEvent extends SoundEvent
Handles sound events for all types.
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) EnginePane
engine_pane
-
Fields inherited from class jmri.jmrit.vsdecoder.SoundEvent
bt, button, button_label, button_trigger_list, buttontype, event_name, my_sound, name, parent, t, trigger_list
-
-
Constructor Summary
Constructors Constructor Description EngineSoundEvent()
EngineSoundEvent(java.lang.String n)
EngineSoundEvent(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()
EnginePane
getEnginePane()
org.jdom2.Element
getXml()
void
guiAction(java.beans.PropertyChangeEvent evt)
boolean
hasButton()
boolean
hasEnginePane()
void
propertyChange(java.beans.PropertyChangeEvent event)
void
setButtonLabel(java.lang.String bl)
void
setEnginePane(EnginePane e)
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, getEventName, getName, getParent, getSound, getTrigger, setButton, setEventName, setName, setParent, setSound
-
-
-
-
Field Detail
-
engine_pane
EnginePane engine_pane
-
-
Constructor Detail
-
EngineSoundEvent
public EngineSoundEvent()
-
EngineSoundEvent
public EngineSoundEvent(java.lang.String n)
-
EngineSoundEvent
public EngineSoundEvent(java.lang.String n, java.lang.String bl)
-
-
Method Detail
-
hasButton
public boolean hasButton()
- Overrides:
hasButton
in classSoundEvent
-
hasEnginePane
public boolean hasEnginePane()
- Overrides:
hasEnginePane
in classSoundEvent
-
getButton
public javax.swing.JComponent getButton()
- Overrides:
getButton
in classSoundEvent
-
getEnginePane
public EnginePane getEnginePane()
- Overrides:
getEnginePane
in classSoundEvent
-
setEnginePane
public void setEnginePane(EnginePane e)
- Overrides:
setEnginePane
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
-
guiAction
public void guiAction(java.beans.PropertyChangeEvent evt)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Overrides:
propertyChange
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
-
-