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);  
        } 

最新文章

  1. sokect编程进阶
  2. oracle11g的standby性能分析报告statpack安装
  3. .net混淆、反编译工具调查
  4. CentOS7安装Nginx并部署
  5. [redis] Redis 常用命令
  6. HTML5学堂 全新的HTML5/前端技术分享平台
  7. Redrain仿酷狗音乐播放器开发完毕,发布测试程序
  8. PCAP 抓包
  9. java项目创建和部署
  10. 前端HTML与CSS编码规范
  11. Mutex(测量)
  12. Delphi 中Format的字符串格式化使用说明(转)
  13. Blockly编程:用Scratch制作游戏愤怒的小牛(小鸟)
  14. ClassLoader.getResourceAsStream() 与 Class.getResourceAsStream()的区别
  15. Struts2 之值栈
  16. 盒子模型(Box Model)
  17. vue表單
  18. 详解vue的数据binding原理
  19. [20180627]truncate table的另类恢复.txt
  20. [Python]Python 使用 for 循环的小例子

热门文章

  1. dataguard switchover to physical stnadby
  2. 2015 测试赛 大神和小伙伴 hihoCoder
  3. 1.7-BGP⑤
  4. 在Cocos2d-X中玩转精灵
  5. mac Homebrew Updating慢,替换及重置Homebrew默认源
  6. luogu3382【模板】三分法
  7. oc25--私有变量私有方法
  8. 【BZOJ 1590】 Secret Message
  9. E20170907-ts
  10. cors解决跨越问题