@SuppressWarnings("unchecked") public List<ZcEbEvalReport> getCheckedList() { List<ZcEbEvalReport> beanList = new ArrayList<ZcEbEvalReport>(); JGroupableTable table = topDataDisplay.getActiveTableDisplay().getTable(); MyTableModel model = (MyTableModel) table.getModel(); // Modal的数据 List list = model.getList(); Integer[] checkedRows = table.getCheckedRows(); for (Integer checkedRow : checkedRows) { int accordDataRow = table.convertRowIndexToModel(checkedRow); ZcEbEvalReport bean = (ZcEbEvalReport) list.get(accordDataRow); beanList.add(bean); } return beanList; }
@Override protected void preprocessShowingTableDisplay(List<TableDisplay> showingTableDisplays) { for (final TableDisplay d : showingTableDisplays) { final JGroupableTable table = d.getTable(); table.addMouseListener( new MouseAdapter() { @Override @SuppressWarnings("unchecked") public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2 && SwingUtilities.isLeftMouseButton(e)) { JGroupableTable table = d.getTable(); String tabStatus = d.getStatus(); MyTableModel model = (MyTableModel) table.getModel(); int row = table.getSelectedRow(); List viewList = (List) ObjectUtil.deepCopy( ListUtil.convertToTableViewOrderList(model.getList(), table)); new ZcEbReportOffLineDialog(self, viewList, row, tabStatus); } } }); } }
package com.ufgov.zc.client.component.ui;
package com.ufgov.zc.client.zc.auditsheet;