Examples of removeElement()


Examples of javax.swing.DefaultComboBoxModel.removeElement()

        DefaultComboBoxModel model =
            (DefaultComboBoxModel)furnitureCatalogPanel.categoryFilterComboBox.getModel();
        FurnitureCategory category = ev.getItem().getCategory();
        List<FurnitureCategory> categories = catalog.getCategories();
        if (!categories.contains(category)) {
          model.removeElement(category);
          furnitureCatalogPanel.categoryFilterComboBox.setSelectedIndex(0);
        } else if (model.getIndexOf(category) == -1) {
          model.insertElementAt(category, categories.indexOf(category) + 1);
        }
      }
View Full Code Here

Examples of javax.swing.DefaultListModel.removeElement()

        DefaultListModel sourceModel, targetModel;
        sourceModel = (DefaultListModel) sourceList.getModel();
        targetModel = (DefaultListModel) targetList.getModel();
        Object[] selection = sourceList.getSelectedValues();
        for (Object element : selection) {
            sourceModel.removeElement(element);
            targetModel.addElement(element);
        }
    }

    public static ValidationPanel createValidationPanel(MergeColumnsUI innerPanel) {
View Full Code Here

Examples of javax.swing.MutableComboBoxModel.removeElement()

        else
        {
            while(dataModel.getSize() > 0)
            {
                Object element = dataModel.getElementAt( 0 );
                dataModel.removeElement( element );
            }
        }
    }

    public int getSelectedIndex()
View Full Code Here

Examples of javax.swing.SpinnerNumberModel.removeElement()

           
            ListModel dmodel = filterSelectionList.getModel();
                DefaultListModel model = (DefaultListModel)dmodel;
            for (int z=0;z<s.length;z++)
            {
              model.removeElement(s[z]);
            }
           
          }
        });
   
View Full Code Here

Examples of net.alteiar.beans.map.MapBean.removeElement()

        1, battle.getElementsAt(new Point(6, 6)).size());
    assertEquals(
        "The map should'nt have any element at the position (4,4)", 0,
        battle.getElementsAt(new Point(4, 4)).size());

    battle.removeElement(elementsOnMap.iterator().next());
    while (!elementsOnMap.isEmpty()) {
      sleep(10);
      elementsOnMap = battle.getElements();
    }
View Full Code Here

Examples of net.alteiar.documents.map.MapBean.removeElement()

  }

  public void deleteEffect() {
    MapBean map = (MapBean) CampaignClient.getInstance().getBean(this.getMapId());
    map.removeVetoableChangeListener(this);
    map.removeElement(this.getId());
  }

  public void activation() {
    activate();
    areaOfEffect.setHiddenForPlayer(false);
View Full Code Here

Examples of org.apache.commons.collections.primitives.ByteCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement((byte)1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.commons.collections.primitives.CharCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement((char)1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.commons.collections.primitives.DoubleCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement((double)1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.commons.collections.primitives.FloatCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement((float)1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.