Exemplo n.º 1
0
 private void  removeItem(System.Object item)
 {
     if (items != null)
     {
         List temp   = new LinkedList();
         List litems = (List)item;
         for (int idx = 0; idx < litems.size(); idx++)
         {
             System.Object tmpItem = litems.get(idx);
             if (!tmpItem.Equals(item))
             {
                 temp.add(tmpItem);
             }
         }
         items = temp.toArray();
         fireContentsChanged(this, 0, items.Length);
     }
 }
Exemplo n.º 2
0
 private void removeItem(System.Object item)
 {
     if (items != null)
     {
         List temp = new LinkedList();
         List litems = (List) item;
         for (int idx = 0; idx < litems.size(); idx++)
         {
             System.Object tmpItem = litems.get(idx);
             if (!tmpItem.Equals(item))
             {
                 temp.add(tmpItem);
             }
         }
         items = temp.toArray();
         fireContentsChanged(this, 0, items.Length);
     }
 }