Package jmri.beans

Interface VetoableChangeFirer

All Known Implementing Classes:
AbstractAnalogIOManager, AbstractAudioManager, AbstractBaseManager, AbstractLightManager, AbstractManager, AbstractMemoryManager, AbstractMeterManager, AbstractProvidingProxyManager, AbstractProxyManager, AbstractReporterManager, AbstractSensorManager, AbstractSignalHeadManager, AbstractStringIOManager, AbstractTurnoutManager, AcelaLightManager, AcelaSensorManager, AcelaTurnoutManager, BlockManager, CbusLightManager, CbusReporterManager, CbusSensorManager, CbusTurnoutManager, ConcentratorReporterManager, ConcentratorSensorManager, Dcc4PcReporterManager, Dcc4PcSensorManager, DCCppLightManager, DCCppSensorManager, DCCppTurnoutManager, DefaultAnalogActionManager, DefaultAnalogExpressionManager, DefaultAudioManager, DefaultCatalogTreeManager, DefaultConditionalManager, DefaultConditionalNGManager, DefaultDigitalActionManager, DefaultDigitalBooleanActionManager, DefaultDigitalExpressionManager, DefaultIdTagManager, DefaultLogixManager, DefaultLogixNGManager, DefaultMemoryManager, DefaultModuleManager, DefaultNamedTableManager, DefaultRailComManager, DefaultRouteManager, DefaultSignalGroupManager, DefaultSignalMastLogicManager, DefaultSignalMastManager, DefaultSignalSystemManager, DefaultStringActionManager, DefaultStringExpressionManager, DefaultVariableLightManager, EasyDccTurnoutManager, EcosLocoAddressManager, EcosReporterManager, EcosSensorManager, EcosTurnoutManager, EliteXNetTurnoutManager, EntryExitPairs, InternalAnalogIOManager, InternalLightManager, InternalMeterManager, InternalReporterManager, InternalSensorManager, InternalStringIOManager, InternalTurnoutManager, IpocsLightManager, IpocsSensorManager, IpocsTurnoutManager, JMRIClientLightManager, JMRIClientReporterManager, JMRIClientSensorManager, JMRIClientTurnoutManager, LayoutBlockManager, LnLightManager, LnReporterManager, LnSensorManager, LnSensorManager, LnStringIOManager, LnTurnoutManager, MarklinSensorManager, MarklinTurnoutManager, MqttLightManager, MqttSensorManager, MqttTurnoutManager, MrcTurnoutManager, Mx1TurnoutManager, NamedBeanHandleManager, NceLightManager, NceSensorManager, NceTurnoutManager, OBlockManager, OlcbLightManager, OlcbSensorManager, OlcbTurnoutManager, ProxyAnalogIOManager, ProxyIdTagManager, ProxyLightManager, ProxyMeterManager, ProxyReporterManager, ProxySensorManager, ProxyStringIOManager, ProxyTurnoutManager, RaspberryPiSensorManager, RaspberryPiTurnoutManager, RfidReporterManager, RfidSensorManager, RpsReporterManager, RpsSensorManager, SectionManager, SerialLightManager, SerialLightManager, SerialLightManager, SerialLightManager, SerialLightManager, SerialLightManager, SerialSensorManager, SerialSensorManager, SerialSensorManager, SerialSensorManager, SerialSensorManager, SerialSensorManager, SerialTurnoutManager, SerialTurnoutManager, SerialTurnoutManager, SerialTurnoutManager, SerialTurnoutManager, SerialTurnoutManager, SerialTurnoutManager, SpecificLightManager, SpecificLightManager, SpecificLightManager, SpecificLightManager, SpecificSensorManager, SpecificSensorManager, SpecificSensorManager, SpecificSensorManager, SprogTurnoutManager, SRCPSensorManager, SRCPTurnoutManager, StandaloneReporterManager, StandaloneSensorManager, TamsSensorManager, TamsTurnoutManager, TransitManager, TranspondingTagManager, UsbLightManager, VetoableChangeSupport, WarrantManager, XBeeLightManager, XBeeSensorManager, XBeeTurnoutManager, XNetLightManager, XNetSensorManager, XNetTurnoutManager, XpaTurnoutManager, Z21ReporterManager, Z21SensorManager, Z21XNetTurnoutManager, ZTC611XNetTurnoutManager

public interface VetoableChangeFirer
Interface that defines the methods needed to fire vetoable property changes.
  • Method Details

    • fireVetoableChange

      void fireVetoableChange​(String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException
      Fire a property change. Despite being public due to limitations in Java 8, this method should only be called by the subclasses of implementing classes, as this will become a protected class when JMRI requires Java 11 or newer.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property
      newValue - the new value of the property
      Throws:
      PropertyVetoException - if one of listeners vetoes the property update
    • fireVetoableChange

      Fire a property change. Despite being public due to limitations in Java 8, this method should only be called by the subclasses of implementing classes, as this will become a protected class when JMRI requires Java 11 or newer.
      Parameters:
      event - the PropertyChangeEvent to be fired
      Throws:
      PropertyVetoException - if one of listeners vetoes the property update
    • fireVetoableChange

      void fireVetoableChange​(String propertyName, int oldValue, int newValue) throws PropertyVetoException
      Fire a property change. Despite being public due to limitations in Java 8, this method should only be called by the subclasses of implementing classes, as this will become a protected class when JMRI requires Java 11 or newer.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property
      newValue - the new value of the property
      Throws:
      PropertyVetoException - if one of listeners vetoes the property update
    • fireVetoableChange

      void fireVetoableChange​(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
      Fire a property change. Despite being public due to limitations in Java 8, this method should only be called by the subclasses of implementing classes, as this will become a protected class when JMRI requires Java 11 or newer.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property
      newValue - the new value of the property
      Throws:
      PropertyVetoException - if one of listeners vetoes the property update