Package jmri.beans

Interface PropertyChangeProvider

    • Method Summary

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

      • addPropertyChangeListener

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

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

        @Nonnull
        java.beans.PropertyChangeListener[] getPropertyChangeListeners()
        Get all PropertyChangeListeners currently attached to this object.
        Returns:
        An array of PropertyChangeListeners.
      • getPropertyChangeListeners

        @Nonnull
        java.beans.PropertyChangeListener[] getPropertyChangeListeners​(@CheckForNull
                                                                       java.lang.String propertyName)
        Get all PropertyChangeListeners currently listening to changes to the specified property.
        Parameters:
        propertyName - the name of the property of interest
        Returns:
        an array of PropertyChangeListeners
      • removePropertyChangeListener

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

        void removePropertyChangeListener​(@CheckForNull
                                          java.lang.String propertyName,
                                          @CheckForNull
                                          java.beans.PropertyChangeListener 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 PropertyChangeListener to remove.