|
Last
revision of this document: |
This
is document contains the code for Class JS_ErrDB_Project.
This
class contains variables and methods to maintain business-data
concerning the 'Project' within the application.
For easy 'cut and
paste' ;-)
package
js_errdb.clientframes;
import
java.awt.*;
import
java.awt.event.*;
import
javax.swing.*;
import
javax.swing.table.DefaultTableColumnModel;
import
js_base.frame.*;
import
js_errdb.boc.*;
/**
*
* @author kurt@javascout.biz
*
@date 2006-06-07
*
* @description
* Task
to maintain data about 'Projects'
*
* @change-log
* when who why
*
--------------------------------------------------------
*
*/
public
class JS_ErrDB_Project
extends JSBS_TaskFrame
implements
ActionListener {
private
JPanel pnl_Main=null;
private
JPanel pnl_Maintain=null;
private
JPanel pnl_Select=null;
protected
JButton btn_Store=null;
protected
JButton btn_Copy=null;
protected
JButton btn_ChooseDirectory=null;
private
JLabel lbl_ProjectCode=null;
private
JTextField txt_ProjectCode=null;
private
JLabel lbl_LanguageCode=null;
private
JTextField txt_LanguageCode=null;
private
JLabel lbl_TargetDirectory=null;
private
JTextField txt_TargetDirectory=null;
protected
JButton btn_Get=null;
protected
JButton btn_Deletey=null;
private
JLabel lbl_SelectionList=null;
private
JLabel lbl_Selection=null;
private
JTextField txt_Selection=null;
private
JPanel pnl_SelectionList=null;
private
JScrollPane pnl_SelectionListScroll=null;
private
JTable pnl_SelectionListTable=null;
private
DefaultTableColumnModel
pnl_SelectionListDefaultTableColumnModel=null;
/*
* Business
Objects maintained within this task. */
protected
JS_ErrDB_Project_BOC structJS_ErrDB_Project_BOC_Read;
protected
JS_ErrDB_Project_BOC structJS_ErrDB_Project_BOC_Processed;
/*
* Set
of Business Objects for display of selection choice. */
protected
JS_ErrDB_Project_Set_BOC structJS_ErrDB_Project_Set_BOC;
/*
*
-------------------------------
* Constructor of the class
*/
public
JS_ErrDB_Project(JSBS_StartFrame parmCC){
/* Do
the code in the Constructor of the superclass.
*/
super(parmCC);
/* The
code is seperated in 3 methods to keep one method smaller.
*/
initialize_before_frame();
initialize_frame();
initialize_after_frame();
}
public
JPanel get_pnl_Main() {
/* The code
of this method auto-creates the element if it is not already defined
*/
if
(pnl_Main
== null) {
try
{
pnl_Main
= new
JPanel();
pnl_Main.setName("pnl_Main");
pnl_Main.setLayout(new
GridBagLayout());
/*
* Define GridBagConstraints for the element to be added
*/
GridBagConstraints
gbc_pnl_Maintain = new