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);
}
}
}
);
本文介绍了如何为KDCheckBox和表格组件添加监听器。对于KDCheckBox, 当其状态发生改变时,另一个KDCheckBox将被设置为未选中状态。对于表格,当编辑单元格操作停止前,会触发事件并调用特定方法来处理数据变化。
1032

被折叠的 条评论
为什么被折叠?



