Example #1
0
 public void removeRow(int index) {
   remove(rows.get(index));
   remove(struts.get(index));
   rows.remove(index);
   struts.remove(index);
   repaint();
   updateUI();
 }
Example #2
0
 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()]));
    }
Example #4
0
  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);
  }
Example #5
0
 static void removeCounter(Counter counter) {
   counters.remove(counter);
 }
Example #6
0
 /**
  * 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);
   }
 }
Example #8
0
 /**
  * Remove the given property change listener.
  *
  * @param l Listener to remove.
  */
 public void removePropertyChangeListener(PropertyChangeListener l) {
   _changeListeners.remove(l);
 }