base/common/src/main/com/thesett/common/swing/workflow/WorkFlowButtonsPanel.java
public void updateButtonsForScreen(WorkFlowScreenState state)
    {
        // Check if it is in the READY or NOT_SAVED state
        if (state.getState().equals(WorkFlowScreenState.READY) ||
                state.getState().equals(WorkFlowScreenState.NOT_SAVED))
        {
            backButton.setEnabled(state.isPrevAvailable());
            nextButton.setEnabled(state.isNextAvailable());
            finishButton.setEnabled(state.isFinished());
        }

        // Check if it is in the NOT_INITIALIZED state
        if (state.getState().equals(WorkFlowScreenState.NOT_INITIALIZED))
        {
            backButton.setEnabled(false);
            nextButton.setEnabled(false);
            finishButton.setEnabled(false);
        }
    }
public void updateButtonsForScreen(WorkFlowScreenState state)
    {
        // Check if it is in the READY or NOT_SAVED state
        if (state.getState().equals(WorkFlowScreenState.READY) ||
                state.getState().equals(WorkFlowScreenState.NOT_SAVED))
        {
            backButton.setEnabled(state.isPrevAvailable());
            nextButton.setEnabled(state.isNextAvailable());
            finishButton.setEnabled(state.isFinished());
        }

        // Check if it is in the NOT_INITIALIZED state
        if (state.getState().equals(WorkFlowScreenState.NOT_INITIALIZED))
        {
            backButton.setEnabled(false);
            nextButton.setEnabled(false);
            finishButton.setEnabled(false);
        }
    }
public void updateButtonsForScreen ( WorkFlowScreenState state ) { // Check if it is in the READY or NOT_SAVED state if ( state . getState ( ) . equals ( WorkFlowScreenState . READY ) || state . getState ( ) . equals ( WorkFlowScreenState . NOT_SAVED ) ) { backButton . setEnabled ( state . isPrevAvailable ( ) ) ; nextButton . setEnabled ( state . isNextAvailable ( ) ) ; finishButton . setEnabled ( state . isFinished ( ) ) ; } // Check if it is in the NOT_INITIALIZED state if ( state . getState ( ) . equals ( WorkFlowScreenState . NOT_INITIALIZED ) ) { backButton . setEnabled ( false ) ; nextButton . setEnabled ( false ) ; finishButton . setEnabled ( false ) ; } }
Updates the buttons enabled/disabled status to reflect the current screen state.

@param state The new work flow screen state.
Updates the buttons enabled / disabled status to reflect the current screen state .