base/common/src/main/com/thesett/common/swing/workflow/WorkFlowButtonsPanel.java
public void updateButtonsForWorkFlow(WorkFlowState state)
    {
        // Check if it is in the NOT_INITIALIZED state
        if (state.getState().equals(WorkFlowState.NOT_INITIALIZED))
        {
            backButton.setEnabled(false);
            nextButton.setEnabled(false);
            finishButton.setEnabled(false);
            cancelButton.setEnabled(false);
        }

        // Check if it is in the READY state
        if (state.getState().equals(WorkFlowState.READY))
        {
            finishButton.setEnabled(false);
            cancelButton.setEnabled(true);

            // Update buttons for the current screen state
            updateButtonsForScreen(state.getCurrentScreenState());
        }

        // Check if it is in the NOT_SAVED state
        if (state.getState().equals(WorkFlowState.NOT_SAVED))
        {
            finishButton.setEnabled(true);
            cancelButton.setEnabled(true);
        }
    }
public void updateButtonsForWorkFlow(WorkFlowState state)
    {
        // Check if it is in the NOT_INITIALIZED state
        if (state.getState().equals(WorkFlowState.NOT_INITIALIZED))
        {
            backButton.setEnabled(false);
            nextButton.setEnabled(false);
            finishButton.setEnabled(false);
            cancelButton.setEnabled(false);
        }

        // Check if it is in the READY state
        if (state.getState().equals(WorkFlowState.READY))
        {
            finishButton.setEnabled(false);
            cancelButton.setEnabled(true);

            // Update buttons for the current screen state
            updateButtonsForScreen(state.getCurrentScreenState());
        }

        // Check if it is in the NOT_SAVED state
        if (state.getState().equals(WorkFlowState.NOT_SAVED))
        {
            finishButton.setEnabled(true);
            cancelButton.setEnabled(true);
        }
    }
Updates the buttons enabled/disabled status to reflect the current work flow state.

@param state The new work flow state.