|
Last
revision of this document: |
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);
}
}
}