Package jmri.beans

Class VetoableChangeSupport

    • Field Detail

      • vetoableChangeSupport

        protected final java.beans.VetoableChangeSupport vetoableChangeSupport
        Provide a VetoableChangeSupport helper.
    • Method Detail

      • getVetoableChangeListeners

        public java.beans.VetoableChangeListener[] getVetoableChangeListeners​(java.lang.String propertyName)
        Get all VetoableChangeListeners currently listening to changes to the specified property.
        Specified by:
        getVetoableChangeListeners in interface VetoableChangeProvider
        Parameters:
        propertyName - The name of the property of interest
        Returns:
        An array of VetoableChangeListeners.
      • fireVetoableChange

        public void fireVetoableChange​(java.lang.String propertyName,
                                       boolean oldValue,
                                       boolean newValue)
                                throws java.beans.PropertyVetoException
        Fire a property change.
        Specified by:
        fireVetoableChange in interface VetoableChangeFirer
        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:
        java.beans.PropertyVetoException - if one of listeners vetoes the property update
      • fireVetoableChange

        public void fireVetoableChange​(java.beans.PropertyChangeEvent event)
                                throws java.beans.PropertyVetoException
        Fire a property change.
        Specified by:
        fireVetoableChange in interface VetoableChangeFirer
        Parameters:
        event - the PropertyChangeEvent to be fired
        Throws:
        java.beans.PropertyVetoException - if one of listeners vetoes the property update
      • fireVetoableChange

        public void fireVetoableChange​(java.lang.String propertyName,
                                       int oldValue,
                                       int newValue)
                                throws java.beans.PropertyVetoException
        Fire a property change.
        Specified by:
        fireVetoableChange in interface VetoableChangeFirer
        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:
        java.beans.PropertyVetoException - if one of listeners vetoes the property update
      • fireVetoableChange

        public void fireVetoableChange​(java.lang.String propertyName,
                                       java.lang.Object oldValue,
                                       java.lang.Object newValue)
                                throws java.beans.PropertyVetoException
        Fire a property change.
        Specified by:
        fireVetoableChange in interface VetoableChangeFirer
        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:
        java.beans.PropertyVetoException - if one of listeners vetoes the property update