com.scudata.ide.spl.etl.ParamInputPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.ide.spl.etl;
import javax.swing.*;
import java.awt.*;
import com.scudata.common.MessageManager;
import com.scudata.ide.common.GM;
/**
* ???????????
*
* @author Joancy
*
*/
public class ParamInputPanel extends JPanel{
private static final long serialVersionUID = 7836761146175300849L;
private TableParamEdit table;
JLabel lbType = new JLabel();
JLabel lbDesc = new JLabel("???Ա༭");
ParamInfoList infoList;
MessageManager mm = FuncMessage.get();
Dialog owner;
/**
* ???캯??
* @param owner ??????
*/
public ParamInputPanel(Dialog owner){
this.owner = owner;
setLayout( new BorderLayout() );
lbType.setForeground(Color.red);
JPanel tmp = new JPanel(new GridBagLayout());
tmp.add(lbType,GM.getGBC(1, 1));
tmp.add(lbDesc,GM.getGBC(1, 2,true));
add( tmp, BorderLayout.NORTH );
table = new TableParamEdit( owner );
add( new JScrollPane( table ),BorderLayout.CENTER );
}
/**
* ???ò?????Ϣ
* @param funcType ????????
* @param funcTitle ????????
* @param funcDesc ????????????Ϣ
* @param list ?????IJ?????Ϣ?б?
*/
public void setParamInfoList(String funcType, String funcTitle,String funcDesc,ParamInfoList list ) {
this.infoList = list;
if(funcType.isEmpty()){
lbType.setText(funcTitle);
}else{
lbType.setText(funcType+"."+funcTitle);
}
lbDesc.setText(" "+funcDesc);
table.setParamEdit(list);
}
/**
* ??ȡ?????༭??
* @return ?????༭??
*/
public TableParamEdit getParamTable() {
return table;
}
/**
* ??ȡ??????Ϣ?б?
* @return ??????Ϣ?б?
*/
public ParamInfoList getParamInfoList() {
table.acceptText();
return infoList;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy