public void registerWorkFlowController ( WorkFlowController controller ) { // Set the work flow controller to listen for button events backButton . addActionListener ( controller ) ; nextButton . addActionListener ( controller ) ; finishButton . addActionListener ( controller ) ; cancelButton . addActionListener ( controller ) ; // Register this to listen for changes to the work flow state controller . getWorkFlowState ( ) . addPropertyChangeListener ( this ) ; // Register this to listen for changes to the state for the current screen if it is not null WorkFlowScreenState currentScreenState = controller . getWorkFlowState ( ) . getCurrentScreenState ( ) ; if ( currentScreenState != null ) { currentScreenState . addPropertyChangeListener ( this ) ; } }
Registers the work flow button panel with the specified work flow controller . This will cause the work flow controller to receive button press events from the panel and register the button panel to receive state changes from the underlying work flow model .