Class JmriTwoStatePropertyListener

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener

    public class JmriTwoStatePropertyListener
    extends JmriSimplePropertyListener
    A service class for monitoring a bound property in one of the JMRI Named beans (Turnout, Sensor, etc). For use where only two states are possible, ACTIVE/INACTIVE, THROWN/CLOSED etc.

    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