public void actionPerformed(ActionEvent event)
    {
        /*log.fine("void actionPerformed(ActionEvent): called");*/
        /*log.fine("Action is " + event.getActionCommand());*/

        // Check which action event was performed
        String action = event.getActionCommand();

        // Check if the finish button was pressed
        if ("Finish".equals(action))
        {
            // Save the work in progress
            saveWorkFlow();
        }

        // Check if the cancel button was pressed
        if ("Cancel".equals(action))
        {
            // Discard the work in progress
            discardWorkFlow();
        }

        // Check if the next page button was pressed
        if ("Next |>".equals(action))
        {
            // Notify implementing class of transition to the next page
            nextPage();
        }

        // Check if the prev page button was pressed
        if ("<| Prev".equals(action))
        {
            // Notify implementing class of transition to the previous page
            prevPage();
        }
    }
public void actionPerformed(ActionEvent event)
    {
        
        

        
        String action = event.getActionCommand();

        
        if ("Finish".equals(action))
        {
            
            saveWorkFlow();
        }

        
        if ("Cancel".equals(action))
        {
            
            discardWorkFlow();
        }

        
        if ("Next |>".equals(action))
        {
            
            nextPage();
        }

        
        if ("<| Prev".equals(action))
        {
            
            prevPage();
        }
    }
public void actionPerformed ( ActionEvent event ) { /*log.fine("void actionPerformed(ActionEvent): called");*/ /*log.fine("Action is " + event.getActionCommand());*/ // Check which action event was performed String action = event . getActionCommand ( ) ; // Check if the finish button was pressed if ( "Finish" . equals ( action ) ) { // Save the work in progress saveWorkFlow ( ) ; } // Check if the cancel button was pressed if ( "Cancel" . equals ( action ) ) { // Discard the work in progress discardWorkFlow ( ) ; } // Check if the next page button was pressed if ( "Next |>" . equals ( action ) ) { // Notify implementing class of transition to the next page nextPage ( ) ; } // Check if the prev page button was pressed if ( "<| Prev" . equals ( action ) ) { // Notify implementing class of transition to the previous page prevPage ( ) ; } }
Listens for events from back, next, finish and cancel inputs. If the event is finish the {@link #saveWork} method
is triggered. If the event is cancel the {@link #discardWork} method is called. If the event is back or next then
the {@link #prevPage} or {@link #nextPage} methods are called.

@param event The work flow action event.
Listens for events from back next finish and cancel inputs . If the event is finish the { @link #saveWork } method is triggered . If the event is cancel the { @link #discardWork } method is called . If the event is back or next then the { @link #prevPage } or { @link #nextPage } methods are called .