电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

金蝶云星空 F7选择列表控件的使用.docx

金蝶云星空 F7选择列表控件的使用.docx_第1页
1/3
金蝶云星空 F7选择列表控件的使用.docx_第2页
2/3
金蝶云星空 F7选择列表控件的使用.docx_第3页
3/3
③内部公开请勿外传1、进入页面后,控件选择单据列表和F7已选列表2、处理页面布局和列表展示3、添加事件处理插件publicclassF7SelectListPluginextendsAbstractListPlugin{privatestaticfinalLoglogger=LogFactory.getLog(F7SelectListPlugin.class);privatestaticfinalStringBILLLISTAP="billlistap";privatestaticfinalStringSELECTED_SOLUTION="f7selectedlistap";1/3③内部公开请勿外传@OverridepublicvoidregisterListener(EventObjecte){super.registerListener(e);//配置列表与F7已选列表互动增删监听BillListbillList=this.getControl(BILLLISTAP);F7SelectedListf7SelectedList=getControl(SELECTED_SOLUTION);billList.addListRowClickListener(newListRowClickListener(){publicvoidlistRowDoubleClick(ListRowClickEventarg0){thrownewUnsupportedOperationException();}publicvoidlistRowClick(ListRowClickEventlistRowClickEvent){BillListsource=(BillList)listRowClickEvent.getSource();f7SelectedList.addItems(getF7SelectedItems(source.getSelectedRows()));}});billList.addListRowSelectAllListeners((event)->{BillListsource=(BillList)event.getSource();f7SelectedList.addItems(getF7SelectedItems(source.getSelectedRows()));});billList.addClearSelectionListener((event)->{f7SelectedList.addItems(newArrayList<>(0));});f7SelectedList.addF7SelectedListRemoveListener((f7SelectedListRemoveEvent)->{billList.restoreSelection(f7SelectedListRemoveEvent.getParam().toString());});f7SelectedList.addF7SelectedListRemoveAllListener((f7SelectedListRemoveEvent)->{billList.clearSelection();});}/***将列表选择选项转化成F7内容项*/privateListgetF7SelectedItems(ListSelectedRowCollectionselectedRows){ArrayListvalueTextItems=newArrayList<>();for(ListSelectedRowrow:selectedRows){valueTextItems.add(newValueTextItem(row.toString(),row.getBillNo()));}returnvalueTextItems;}}2/3③内部公开请勿外传4、成果展示3/3

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

金蝶云星空 F7选择列表控件的使用.docx

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信