eas之编辑界面中分录默认携带的标题栏
2024-08-27 19:27:25
this.kdtEntrys_detailPanel.setTitle("物件内容");
KDContainer kdtEntrys_Container = (KDContainer) ((KDPanel) this.kdtEntrys_detailPanel.getComponent(0)).getComponent(0);
((KDPanel) this.kdtEntrys_detailPanel.getComponent(0)).remove(0);
((KDPanel) this.kdtEntrys_detailPanel.getComponent(0)).add(kdtEntrys_Container, new KDLayout.Constraints(0, 5, 983, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT));
age:
this.kdtEntry_detailPanel.setTitle("分支机构");
this.kdtEntry.getStyleAttributes().setLocked(true);
this.kdtEntry.getSelectManager().setSelectMode(2);
if (((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(0) instanceof KDContainer) {
KDContainer kdtEntrys_Container = (KDContainer) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(0);
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).remove(0);
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).add(kdtEntrys_Container, new KDLayout.Constraints(0, 5, 749, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT));
}
if (((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(0) instanceof KDWorkButton && ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(0)).getName().equals("btnAddnewLine")) {
KDWorkButton btnAddnewLine = ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(0));
btnAddnewLine.setIcon(null);
btnAddnewLine.setText("新增分支机构");
btnAddnewLine.setToolTipText("新增分支机构");
btnAddnewLine.removeActionListener(btnAddnewLine.getActionListeners() [0]);
btnAddnewLine.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
BranchAddNew(e);
} catch (Exception e1) {
e1.printStackTrace();
}
}
});
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).remove(0);
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).add(btnAddnewLine, new KDLayout.Constraints(399, 5, 110, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_RIGHT), 0);
}
if (((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(1) instanceof KDWorkButton && ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(1)).getName().equals("btnInsertLine")) {
KDWorkButton btnInsertLine = ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(1));
btnInsertLine.setIcon(null);
btnInsertLine.setText("修改分支机构");
btnInsertLine.setToolTipText("修改分支机构");
btnInsertLine.removeActionListener(btnInsertLine.getActionListeners() [0]);
btnInsertLine.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
BranchEdit(e);
} catch (Exception e1) {
e1.printStackTrace();
}
}
});
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).remove(1);
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).add(btnInsertLine, new KDLayout.Constraints(514, 5, 110, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_RIGHT), 1);
}
if (((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(2) instanceof KDWorkButton && ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(2)).getName().equals("btnRemoveLines")) {
KDWorkButton btnRemoveLines = ((KDWorkButton) ((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).getComponent(2));
btnRemoveLines.setIcon(null);
btnRemoveLines.setText("删除分支机构");
btnRemoveLines.setToolTipText("删除分支机构");
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).remove(2);
((KDPanel) this.kdtEntry_detailPanel.getComponent(0)).add(btnRemoveLines, new KDLayout.Constraints(629, 5, 110, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_RIGHT), 2);
}
最新文章
- sokect编程进阶
- oracle11g的standby性能分析报告statpack安装
- .net混淆、反编译工具调查
- CentOS7安装Nginx并部署
- [redis] Redis 常用命令
- HTML5学堂 全新的HTML5/前端技术分享平台
- Redrain仿酷狗音乐播放器开发完毕,发布测试程序
- PCAP 抓包
- java项目创建和部署
- 前端HTML与CSS编码规范
- Mutex(测量)
- Delphi 中Format的字符串格式化使用说明(转)
- Blockly编程:用Scratch制作游戏愤怒的小牛(小鸟)
- ClassLoader.getResourceAsStream() 与 Class.getResourceAsStream()的区别
- Struts2 之值栈
- 盒子模型(Box Model)
- vue表單
- 详解vue的数据binding原理
- [20180627]truncate table的另类恢复.txt
- [Python]Python 使用 for 循环的小例子