📄 outputparametertable.java
字号:
/**
*
*/
package flow.graph.gui.graph.lua.gui.table;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import org.jgraph.graph.DefaultGraphCell;
import flow.graph.gui.graph.FlowGraphConstants;
import flow.graph.gui.graph.cell.bpel.Function;
import flow.graph.gui.graph.cell.bpel.Functions;
import flow.graph.gui.graph.cell.bpel.Message;
import flow.graph.gui.graph.cell.bpel.Messages;
import flow.graph.gui.graph.lua.xml.Parameter;
import flow.graph.gui.graph.lua.xml.Parameters;
/**
* @author Administrator
*
*/
public class OutputParameterTable extends JTable{
private DefaultGraphCell cell;
private ParameterTableModel tableModel;
public final static int DEFAULT_ROW_COUNT = 10;
public OutputParameterTable(DefaultGraphCell cell){
super(new ParameterTableModel());
tableModel = (ParameterTableModel)getModel();
this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
//getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(new JComboBox(Message.MessageType)));
this.cell = cell;
Parameters ps = (Parameters)FlowGraphConstants.getOutputTemplate(cell.getAttributes());
if(ps != null){
for(int i=0;i<ps.getParameters().size();i++){
Parameter p = (Parameter)ps.getParameters().get(i);
tableModel.addRow(p.getName(), p.getType(), p.getValue(), p.getDiscription());
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -