Package jmri.jmrit.vsdecoder
Class ButtonTrigger
java.lang.Object
jmri.jmrit.vsdecoder.Trigger
jmri.jmrit.vsdecoder.ButtonTrigger
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,EventListener,JmriMouseListener
Button trigger.
This file is part of JMRI.
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 ClassesNested classes/interfaces inherited from class jmri.jmrit.vsdecoder.Trigger
Trigger.CompareType, Trigger.CompareValueType, Trigger.TargetAction, Trigger.TriggerType -
Field Summary
FieldsFields inherited from class jmri.jmrit.vsdecoder.Trigger
callback, event_name, target, target_name, trigger_name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclick(boolean v) booleanorg.jdom2.ElementgetXml()voidInvoked when the mouse button has been clicked (pressed and released) on a component.voidvoidInvoked when the mouse enters a component.voidInvoked when the mouse exits a component.voidInvoked when a mouse button has been pressed on a component.voidInvoked when a mouse button has been released on a component.voidmouseUp()voidvoidsetMatchValue(boolean bv) voidsetXml(org.jdom2.Element e) Methods inherited from class jmri.jmrit.vsdecoder.Trigger
getCallback, getEventName, getName, getTarget, getTargetAction, getTargetName, getTriggerType, setCallback, setEventName, setName, setTarget, setTargetAction, setTargetName, setTriggerType
-
Field Details
-
match_value
boolean match_value
-
-
Constructor Details
-
ButtonTrigger
-
ButtonTrigger
-
-
Method Details
-
setMatchValue
-
getMatchValue
-
mouseDown
-
mouseUp
-
click
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Specified by:
propertyChangein classTrigger
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
mousePressed
Description copied from interface:JmriMouseListenerInvoked when a mouse button has been pressed on a component.- Specified by:
mousePressedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseReleased
Description copied from interface:JmriMouseListenerInvoked when a mouse button has been released on a component.- Specified by:
mouseReleasedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseEntered
Description copied from interface:JmriMouseListenerInvoked when the mouse enters a component.- Specified by:
mouseEnteredin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseExited
Description copied from interface:JmriMouseListenerInvoked when the mouse exits a component.- Specified by:
mouseExitedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseClicked
Description copied from interface:JmriMouseListenerInvoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
mouseClickedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
getXml
-
setXml
-