public void setFinished ( boolean avail ) { /*log.fine("void setFinished(boolean): called");*/ // Check if the state has changed if ( finished != avail ) { // Keep the new state finished = avail ; // Notify any listeners fo the change in state firePropertyChange ( new PropertyChangeEvent ( this , "finished" , ! avail , avail ) ) ; /*log.fine("fired property change event");*/ } }
Sets the state of the finished and notifies any listeners of this change .