Examples of removeItem()


Examples of javax.swing.JComboBox.removeItem()

    c1.removeItem("Item 2");
    harness.check(c1.getSelectedItem(), "Item 1");
    harness.check(c1.getSelectedIndex(), 0);
   
    c1.addItem("Item A");
    c1.removeItem("Item 1");
    harness.check(c1.getSelectedItem(), "Item A");
    harness.check(c1.getSelectedIndex(), 0);
  }
 
}
View Full Code Here

Examples of javax.swing.JComboBox.removeItem()

        JComboBox combo = new JComboBox(new TestModel2());

        combo.insertItemAt("TESTVALUE", 5);
        harness.check(combo.getItemAt(5), "TESTVALUE", "insertItemAt");

        combo.removeItem("TESTVALUE");
        harness.check(combo.getItemCount(), 10, "removeItem");
       
        combo.removeItemAt(0);
        harness.check(combo.getItemCount(), 9, "removeItemAt");
       
View Full Code Here

Examples of javax.swing.JComboBox.removeItem()

        harness.check(ok, "insertItemAt");

        ok = false;
        try
        {
            combo.removeItem("BOGUS");
        }
        catch (RuntimeException re)
        {
            ok = true;
        }
View Full Code Here

Examples of js.lang.builtin.Storage.removeItem()

        storage.setItem("1", "one");
        assert storage.length() == 1;
        assert storage.getItem("1").equals("one");

        storage.removeItem("1");
        assert storage.length() == 0;
        assert storage.getItem("1") == null;
    }

    @Test
View Full Code Here

Examples of mods.railcraft.common.util.inventory.manipulators.InventoryManipulator.removeItem()

     * @param filter EnumItemType to match against
     * @return An ItemStack
     */
    public static ItemStack removeOneItem(IInventory inv, IStackFilter filter) {
        InventoryManipulator im = InventoryManipulator.get(inv);
        return im.removeItem(filter);
    }

    /**
     * Removes and returns a single item from the inventory that matches the
     * filter.
 
View Full Code Here

Examples of net.sf.joafip.performance.items.entity.ItemList.removeItem()

    String line;
    while ((line = reader.readLine()) != null) {// NOPMD
      reader.readLine();// skip one
      final int identifier = Integer.parseInt(line);
      final ItemList itemList = getItemList(session);
      final Item item = itemList.removeItem(identifier);
      if (item == null) {
        Exception closeException=null;
        try {
          reader.close();
        } catch (Exception exception) {
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2TradeList.removeItem()

    if (args.length > 3)
    {
      int order =  findOrderTradeList(itemID, tradeList.getPriceForItemId(itemID), tradeListID);

      tradeList.removeItem(itemID);
      deleteTradeList(tradeListID, order);

      activeChar.sendMessage("Deleted "+ItemTable.getInstance().getTemplate(itemID).getName()+" from Trade List "+tradeListID);
      showShopList(activeChar, tradeListID, 1);
      return;
View Full Code Here

Examples of org.apache.jcs.admin.JCSAdminBean.removeItem()

            {
                String[] keys = request.getParameterValues( KEY_PARAM );

                for ( int i = 0; i < keys.length; i++ )
                {
                    admin.removeItem( cacheName, keys[i] );
                }

                templateName = REGION_DETAIL_TEMPLATE_NAME;
            }
            else if ( action.equals( DETAIL_ACTION ) )
View Full Code Here

Examples of org.apache.metamodel.query.FromClause.removeItem()

        List<Query> result = new ArrayList<Query>(splitQueries.size());
        for (Query splitQuery : splitQueries) {
            Query newQuery = _query.clone();
            FromClause fromClause = newQuery.getFromClause();
            String alias = fromClause.getItem(fromItemIndex).getAlias();
            fromClause.removeItem(fromItemIndex);
            newQuery.from(new FromItem(splitQuery).setAlias(alias));
            result.add(newQuery);
        }
        return result;
    }
View Full Code Here

Examples of org.apache.pdfbox.cos.COSDictionary.removeItem()

        COSDictionary trailer = doc.getTrailer();
        //sort xref, needed only if object keys not regenerated
        Collections.sort(getXRefEntries());
        COSWriterXRefEntry lastEntry = (COSWriterXRefEntry)getXRefEntries().get( getXRefEntries().size()-1);
        trailer.setInt(COSName.getPDFName("Size"), (int)lastEntry.getKey().getNumber()+1);
        trailer.removeItem( COSName.PREV );
        /**
        COSObject catalog = doc.getCatalog();
        if (catalog != null)
        {
            trailer.setItem(COSName.getPDFName("Root"), catalog);
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.