zoukankan      html  css  js  c++  java
  • eas之编辑界面中分录默认携带的标题栏

    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);  
            } 
    承接钉钉定制;网站服务定制; 联系qq:1655119603
  • 相关阅读:
    下班后两小时,决定你将会成为怎样的人?
    快速搭建IE测试环境(Virtualbox+ievms)
    这次,雅虎真的撤销QA团队了
    软件测试之测试用例颗粒度问题
    【转】软件质量谁负责
    定期来一次“绩效谈话”(摘自易中)
    xadmin引入celery4.0执行异步任务与定时任务
    dapi 基于Django的轻量级测试平台三 接口关联
    dapi 基于Django的轻量级测试平台二 前端页面
    dapi 基于Django的轻量级测试平台一 设计思想
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963681.html
Copyright © 2011-2022 走看看