KDBizPromptBox box = new KDBizPromptBox();
box.addSelectorListener(new SelectorListener(){
public void willShow(SelectorEvent e) {
if(prmtheadPlan.getValue() == null){
MsgBox.showInfo("请先选择计划年度");
e.setCanceled(true);
}else{
try {
KDBizPromptBox box = (KDBizPromptBox) e.getSource();
//setFilter(box, (PlanManageInfo)prmtheadPlan.getValue(), "学历");
box.getQueryAgent().resetRuntimeEntityView();
} catch (Exception ex) {
handUIException(ex);
}
}
}
});
box.setQueryInfo(queryInfo);
box.setVisible(true);
box.setEditable(true);
box.setDisplayFormat("$number$");
box.setEditFormat("$number$");
box.setCommitFormat("$number$");
KDTDefaultCellEditor editor = new KDTDefaultCellEditor(box);
return editor;
}
private KDTDefaultCellEditor getGradSchoolEditor(String queryInfo) {
KDBizPromptBox box = new KDBizPromptBox();
box.setQueryInfo(queryInfo);
box.setVisible(true);
box.setEditable(true);
box.setDisplayFormat("$number$");
box.setEditFormat("$number$");
box.setCommitFormat("$number$");
KDTDefaultCellEditor editor = new KDTDefaultCellEditor(box);