public void registerWorkPanel ( WorkPanel panel ) { // Set the work panel to listen for actions generated by the buttons okButton . addActionListener ( panel ) ; cancelButton . addActionListener ( panel ) ; applyButton . addActionListener ( panel ) ; // Register this to listen for changes to the work panels state panel . getWorkPanelState ( ) . addPropertyChangeListener ( this ) ; }
Sets the specified work panel to listen to the button press events for all of the OK Cancel and Apply buttons . Regisers this object to listen for changes to the work panels state .