Package jmri.implementation
Class JmriMemoryPropertyListener
java.lang.Object
jmri.implementation.JmriSimplePropertyListener
jmri.implementation.JmriMemoryPropertyListener
- All Implemented Interfaces:
PropertyChangeListener,EventListener
A service class for monitoring a bound property in one of the JMRI Named
beans For use with properties having two states which are determined by
equality to a String value (e.g. Internal Memory).
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.
- Since:
- 2.5.1
-
Field Summary
FieldsFields inherited from class jmri.implementation.JmriSimplePropertyListener
_clients, _enabled, _namedBean, _propertyName, _type, _varName, _varType -
Constructor Summary
ConstructorsConstructorDescriptionJmriMemoryPropertyListener(String propName, int type, String name, Conditional.Type varType, Conditional client, String data) -
Method Summary
Modifier and TypeMethodDescriptionvoidWhen _enabled is false, Conditional.calculate will compute the state of the conditional, but will not trigger its actions.Methods inherited from class jmri.implementation.JmriSimplePropertyListener
addConditional, calculateClient, getBean, getDevName, getNamedBean, getPropertyName, getType, getVarType, setEnabled
-
Field Details
-
_data
-
-
Constructor Details
-
JmriMemoryPropertyListener
JmriMemoryPropertyListener(String propName, int type, String name, Conditional.Type varType, Conditional client, String data)
-
-
Method Details
-
propertyChange
Description copied from class:JmriSimplePropertyListenerWhen _enabled is false, Conditional.calculate will compute the state of the conditional, but will not trigger its actions. When _enabled is true, Conditional.calculates its state and trigger its actions if its state has changed.- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classJmriSimplePropertyListener
-