public void setPrevAvailable ( boolean avail ) { // Check if the state has changed if ( prevAvailable != avail ) { // Keep the new state prevAvailable = avail ; // Notify any listeners fo the change in state firePropertyChange ( new PropertyChangeEvent ( this , "prevAvailable" , ! avail , avail ) ) ; } }
Sets the state of the previous available flag and notifies any listeners of this change .