|
Last
revision of this document: |
This
is document contains the code for Class
JS_ProjAssist_CommandCenter.
This class contains variables and
methods used for all StartFrames (CommandCenter) of
application-programs.
For easy 'cut and paste' ;-)
package
js_projassist.clientframes;
import
java.awt.*;
import
javax.swing.*;
import
js_base.frame.*;
/**
*
* @author kurt@javascout.biz
*
@date 2006-09-05
*
* @description
* Class
with the User-Interface to maintain the Business-Task
'Project'.
* The Business-Task 'Project' comprises the
definition of Projects and
* Languages of the
respective Project.
* To the combination
Project/Language are other data
* (e.g. language
dependent text for GUI-elements or error-messages) attached.
*
* @change-log
* when who why
*
--------------------------------------------------------
*
*/
public
class JS_ProjAssist_Project
extends JSBS_TaskFrame
{
/*
*
-------------------------------
* GUI-elements
individual for this Task. */
protected
JLabel
lbl_ProjectCode;
protected
JTextField
txt_ProjectCode;
protected
JLabel
lbl_LanguageCode;
protected
JTextField
txt_LanguageCode;
protected
JLabel
lbl_MainTargetDirectory;
protected
JTextField
txt_MainTargetDirectory;
protected
JButton
btn_MainTargetDirectorySelection;
/*
*
-------------------------------
* Constructor of the class
*/
public
JS_ProjAssist_Project(JSBS_StartFrame
parmCC){
super(parmCC);
initialize_before_frame();
initialize_frame();
initialize_after_frame();
}
/*
*
-------------------------------
* Create the GUI-elements
specific for this class.
* This also includes the
overwriting of methods in the inherited class.
* */
protected
JPanel get_pnl_DetailFields() {
/* Auto-create
the GUI-element if it does not already exist. */
if
(pnl_DetailFields == null)
{
try
{
pnl_DetailFields
= new
JPanel();
pnl_DetailFields.setName("pnl_DetailField");
pnl_DetailFields.setLayout(new
GridBagLayout());
/*
* Define
GridBagConstraints for the element to be added.
*/
GridBagConstraints
gbc_lbl_ProjectCode = new
GridBagConstraints();
gbc_lbl_ProjectCode.gridx
= 0;
gbc_lbl_ProjectCode.gridy
= 0;
gbc_lbl_ProjectCode.