Package jmri.beans

Interface VetoableChangeProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addVetoableChangeListener​(java.beans.VetoableChangeListener listener)
      Add a VetoableChangeListener to the listener list.
      void addVetoableChangeListener​(java.lang.String propertyName, java.beans.VetoableChangeListener listener)
      Add a VetoableChangeListener for a specific property.
      java.beans.VetoableChangeListener[] getVetoableChangeListeners()
      Get all VetoableChangeListeners currently attached to this object.
      java.beans.VetoableChangeListener[] getVetoableChangeListeners​(java.lang.String propertyName)
      Get all VetoableChangeListeners currently listening to changes to the specified property.
      void removeVetoableChangeListener​(java.beans.VetoableChangeListener listener)
      Remove the specified listener from this object.
      void removeVetoableChangeListener​(java.lang.String propertyName, java.beans.VetoableChangeListener listener)
      Remove the specified listener of the specified property from this object.
    • Method Detail

      • addVetoableChangeListener

        void addVetoableChangeListener​(@CheckForNull
                                       java.beans.VetoableChangeListener listener)
        Add a VetoableChangeListener to the listener list.
        Parameters:
        listener - The VetoableChangeListener to be added
      • addVetoableChangeListener

        void addVetoableChangeListener​(@CheckForNull
                                       java.lang.String propertyName,
                                       @CheckForNull
                                       java.beans.VetoableChangeListener listener)
        Add a VetoableChangeListener for a specific property.
        Parameters:
        propertyName - The name of the property to listen on.
        listener - The VetoableChangeListener to be added
      • getVetoableChangeListeners

        @Nonnull
        java.beans.VetoableChangeListener[] getVetoableChangeListeners()
        Get all VetoableChangeListeners currently attached to this object.
        Returns:
        An array of VetoableChangeListeners.
      • getVetoableChangeListeners

        @Nonnull
        java.beans.VetoableChangeListener[] getVetoableChangeListeners​(@CheckForNull
                                                                       java.lang.String propertyName)
        Get all VetoableChangeListeners currently listening to changes to the specified property.
        Parameters:
        propertyName - The name of the property of interest
        Returns:
        An array of VetoableChangeListeners.
      • removeVetoableChangeListener

        void removeVetoableChangeListener​(@CheckForNull
                                          java.beans.VetoableChangeListener listener)
        Remove the specified listener from this object.
        Parameters:
        listener - The VetoableChangeListener to remove.
      • removeVetoableChangeListener

        void removeVetoableChangeListener​(@CheckForNull
                                          java.lang.String propertyName,
                                          @CheckForNull
                                          java.beans.VetoableChangeListener listener)
        Remove the specified listener of the specified property from this object.
        Parameters:
        propertyName - The name of the property to stop listening to.
        listener - The VetoableChangeListener to remove.