> List of tutorials

Table of contents for this tutorial

Fat-Client-Development - Code for Class JS_ErrDB_CommandCenter__ActionHandler

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or linked within other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties)__ are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2006-05-05

This is document contains the code for Class JS_ErrDB_CommandCenter__ActionHandler.
This class contains methods that perform mainly business-processing.
For easy 'cut and paste' ;-)

package js_errdb.clientframes;

import java.awt.event.*;

/**
 *
 * @author
kurt@javascout.biz
 * @date 2006-06-08
 *
 * @description
 * Methods to carry out business-actions.
 
*
 * @change-log
 * when     who          why
 * --------------------------------------------------------
 *
 */

public class JS_ErrDB_CommandCenter__ActionHandler
{
/*
 * Method to handle Actions that were triggered by clicking onto a GUI-Element
 * which has added the interface 'ActionListener'. */
    protected static void handleEvent(JS_ErrDB_CommandCenter parmCC, ActionEvent parmActionEvent) {
/* Derive the ActionCommand
 * (which was attached to the GUI-element through method setActionCommand()). */
      String cmd = parmActionEvent.getActionCommand();
/* Check which ActionCommand was handed over and perform the appropriate action. */
      if (cmd.equals("btn_Maintain")) {
/* Button to open the frame to maintain 'Projects' was clicked. */
        JS_ErrDB_Project frm_JS_ErrDB_Project = new JS_ErrDB_Project(parmCC);
        frm_JS_ErrDB_Project.setVisible(true);
      }
    }
}