public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
@Override public void fireTableRowsDeleted(final int firstRow, final int lastRow) { super.fireTableRowsDeleted(firstRow + 1, lastRow + 1); }
public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
Item removeCondition(int index){ final Item item = styles.remove(index); if(table == null){ return item; } table.fireTableRowsDeleted(index, index); return item; }
/** * Remove the specified row. */ public void removeDatum (int row) { _data.remove(row); _model.fireTableRowsDeleted(row, row); }
public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
public synchronized void fastRefresh() { _filteredRecords.remove(0); fireTableRowsDeleted(0, 0); }
@Override public void actionPerformed(ActionEvent e) { int r = dialog.tableRepositories.getSelectedRow(); if (r >= 0) { listRepo.remove(r); modelRepo.fireTableRowsDeleted(r, r); } } });
@Override public void actionPerformed(ActionEvent e) { int r = dialog.tableMapping.getSelectedRow(); if (r >= 0) { listMapping.remove(r); modelMapping.fireTableRowsDeleted(r, r); } } });
private void deleteModule () { ListSelectionModel ls = _modTable.getSelectionModel (); int selRow = ls.getMinSelectionIndex(); if (selRow < 0) { return; // no selection } _modules.remove (selRow); _modTableModel.fireTableRowsDeleted (selRow, selRow); }
private void deleteHandler () { ListSelectionModel ls = _hanTable.getSelectionModel (); int selRow = ls.getMinSelectionIndex(); if (selRow < 0) { return; // no selection } _handlers.remove (selRow); _hanTableModel.fireTableRowsDeleted (selRow, selRow); }
/** * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent arg0) { String cmd = arg0.getActionCommand(); // remove key Object[] keys = mapping.keySet().toArray(); Arrays.sort(keys); int row = Integer.parseInt(cmd); if (row < keys.length) { mapping.remove(keys[row]); ((AbstractTableModel) table.getModel()).fireTableRowsDeleted(row, row); ((AbstractTableModel) table.getModel()).fireTableDataChanged(); } }
@Override public void actionPerformed(ActionEvent e) { int[] viewRows = pvTable.getSelectedRows(); for (int i = viewRows.length - 1; i >= 0; i--) { int modelRow = pvTable.convertRowIndexToModel(viewRows[i]); group.remove(modelRow); pvNames.remove(modelRow); model.fireTableRowsDeleted(modelRow, modelRow); } } };
/** * Removes the specified record from the table. * @param row The index of row. */ public void removeRow(int row) { table_.clearSelection(); DLOPermission user = (DLOPermission)userPermissions_.elementAt(row); permission_.removeUserPermission(user); Enumeration userPermissions = permission_.getUserPermissions(); userPermissions_ = new Vector(); while(userPermissions.hasMoreElements()) { userPermissions_.addElement(userPermissions.nextElement()); } fireTableRowsDeleted(row, row); }
/** * Removes the specified record from the table. * @param row The index of row. */ public void removeRow(int row) { table_.clearSelection(); RootPermission user = (RootPermission)userPermissions_.elementAt(row); permission_.removeAuthorizedUser(user.getUserID()); Enumeration userPermissions = permission_.getUserPermissions(); userPermissions_ = new Vector(); while(userPermissions.hasMoreElements()) { userPermissions_.addElement(userPermissions.nextElement()); } fireTableRowsDeleted(row, row); }
/** * Removes the specified record from the table. * @param row The index of row. */ public void removeRow(int row) { table_.clearSelection(); QSYSPermission user = (QSYSPermission)userPermissions_.elementAt(row); permission_.removeAuthorizedUser(user.getUserID()); // Gets the new data after removing the specified user. Enumeration userPermissions = permission_.getUserPermissions(); userPermissions_ = new Vector(); while(userPermissions.hasMoreElements()) { userPermissions_.addElement(userPermissions.nextElement()); } fireTableRowsDeleted(row, row); }
public void removeTemplateAction() { int selected = view.getTable().getSelectedRow(); if (selected < 0) { return; } Object key = ((AbstractTableModel) view.getTable().getModel()).getValueAt( selected, 0); editor.getRemovedNode().add(getTemplatePreferences().node((String) key)); templateEntries.remove(selected); ((AbstractTableModel) view.getTable().getModel()).fireTableRowsDeleted( selected, selected); } }
protected void fireChanged() { super.fireTableRowsDeleted(0, getRowCount()); super.fireTableRowsInserted(0, getRowCount()); }