Package jmri.beans

Class PropertyChangeSupport

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.beans.PropertyChangeSupport propertyChangeSupport
      Provide a PropertyChangeSupport helper.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      void fireIndexedPropertyChange​(java.lang.String propertyName, int index, boolean oldValue, boolean newValue)
      Fire an indexed property change.
      void fireIndexedPropertyChange​(java.lang.String propertyName, int index, int oldValue, int newValue)
      Fire an indexed property change.
      void fireIndexedPropertyChange​(java.lang.String propertyName, int index, java.lang.Object oldValue, java.lang.Object newValue)
      Fire an indexed property change.
      void firePropertyChange​(java.beans.PropertyChangeEvent event)
      Fire a property change.
      void firePropertyChange​(java.lang.String propertyName, boolean oldValue, boolean newValue)
      Fire a property change.
      void firePropertyChange​(java.lang.String propertyName, int oldValue, int newValue)
      Fire a property change.
      void firePropertyChange​(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
      Fire a property change.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propertyChangeSupport

        protected final java.beans.PropertyChangeSupport propertyChangeSupport
        Provide a PropertyChangeSupport helper.
    • Method Detail

      • fireIndexedPropertyChange

        public void fireIndexedPropertyChange​(java.lang.String propertyName,
                                              int index,
                                              boolean oldValue,
                                              boolean newValue)
        Fire an indexed property change.
        Specified by:
        fireIndexedPropertyChange in interface PropertyChangeFirer
        Parameters:
        propertyName - the programmatic name of the property that was changed
        index - the index of the property element that was changed
        oldValue - the old value of the property
        newValue - the new value of the property
      • fireIndexedPropertyChange

        public void fireIndexedPropertyChange​(java.lang.String propertyName,
                                              int index,
                                              int oldValue,
                                              int newValue)
        Fire an indexed property change.
        Specified by:
        fireIndexedPropertyChange in interface PropertyChangeFirer
        Parameters:
        propertyName - the programmatic name of the property that was changed
        index - the index of the property element that was changed
        oldValue - the old value of the property
        newValue - the new value of the property
      • fireIndexedPropertyChange

        public void fireIndexedPropertyChange​(java.lang.String propertyName,
                                              int index,
                                              java.lang.Object oldValue,
                                              java.lang.Object newValue)
        Fire an indexed property change.
        Specified by:
        fireIndexedPropertyChange in interface PropertyChangeFirer
        Parameters:
        propertyName - the programmatic name of the property that was changed
        index - the index of the property element that was changed
        oldValue - the old value of the property
        newValue - the new value of the property
      • firePropertyChange

        public void firePropertyChange​(java.lang.String propertyName,
                                       boolean oldValue,
                                       boolean newValue)
        Fire a property change.
        Specified by:
        firePropertyChange in interface PropertyChangeFirer
        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
      • firePropertyChange

        public void firePropertyChange​(java.lang.String propertyName,
                                       int oldValue,
                                       int newValue)
        Fire a property change.
        Specified by:
        firePropertyChange in interface PropertyChangeFirer
        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
      • firePropertyChange

        public void firePropertyChange​(java.lang.String propertyName,
                                       java.lang.Object oldValue,
                                       java.lang.Object newValue)
        Fire a property change.
        Specified by:
        firePropertyChange in interface PropertyChangeFirer
        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