EAS BOS KDCheckBox和表格 如何增加监听

来源:互联网 发布:java 读取远程文件 编辑:程序博客网 时间:2024/06/07 17:56

1 KDCheckBox增加监听

   kDCheckBox5.addChangeListener(new ChangeListener() {
   public void stateChanged(ChangeEvent e) {
    if(kDCheckBox5.isSelected()){
     kDCheckBox6.setSelected(false);
    }  
   }
  } );

2  表格增加监听

this.kdtEntry.addKDTEditListener(new KDTEditAdapter() {
   
    /* public void editStopped(KDTEditEvent e) {
       try {
        kdtEntrys_Changed(e.getRowIndex(),e.getColIndex());
       }
       catch (Exception exc) {
        handUIException(exc);
       }
      }*/
    
     public void editStopping(KDTEditEvent e) {
       try {
        kdtEntrys_Changed(e.getRowIndex(),e.getColIndex());
       
       }
       catch (Exception exc) {
        handUIException(exc);
       }
      }
  }
  );

 

原创粉丝点击