public void removeRow(int index) { remove(rows.get(index)); remove(struts.get(index)); rows.remove(index); struts.remove(index); repaint(); updateUI(); }
private void removeTodoItem() { Object possibleSelection = todoItemsList.getSelectedValue(); if (possibleSelection != null) { todoItems.remove(possibleSelection.toString()); updateTodoItems(); } }
/** * Removes specific rows from the list of reading lists. * * @param aRows rows to remove. */ public void removeRows(int[] aRows) { Arrays.sort(aRows); java.util.List<ReadingList> newLists = new ArrayList<ReadingList>(Arrays.asList(lists)); for (int i = aRows.length - 1; i >= 0; i--) { newLists.remove(aRows[i]); } setLists(newLists.toArray(new ReadingList[newLists.size()])); }
static void removeFromLayers(Shape shape) { if (!layerOf.containsKey(shape)) return; int oldLayer = layerOf.get(shape); layerContents.get(oldLayer).remove(shape); if (layerContents.get(oldLayer).isEmpty()) { layerContents.remove(oldLayer); layers.remove((Integer) oldLayer); } layerOf.remove(shape); }
static void removeCounter(Counter counter) { counters.remove(counter); }
/** * Removes the component of a specific <code>PluginComponent</code> from this <code> * PluginContainer</code>. * * @param c the <code>PluginComponent</code> which is to have its component removed from this * <code>PluginContainer</code> */ private synchronized void removePluginComponent(PluginComponent c) { container.remove((Component) c.getComponent()); pluginComponents.remove(c); }
public void removeRow(final int row) { if (row >= 0 && row < myData.size()) { myData.remove(row); fireTableRowsDeleted(row, row); } }
/** * Remove the given property change listener. * * @param l Listener to remove. */ public void removePropertyChangeListener(PropertyChangeListener l) { _changeListeners.remove(l); }