Examples of addItem()


Examples of net.datacrow.console.components.DcComboBox.addItem()

        DcComboBox comboBox = new DcComboBox();
        comboBox.setFont(getStandardFont());
        comboBox.setRenderer(AvailabilityComboBoxRenderer.getInstance());

        //comboBox.addItem(null);
        comboBox.addItem(Boolean.TRUE);
        comboBox.addItem(Boolean.FALSE);

        return comboBox;
    }
   
View Full Code Here

Examples of net.dromard.common.rss.feed.Channel.addItem()

            }
            enclosure.setType(enclosureElmt.getAttribute(Enclosure.TYPE));
            enclosure.setUrl(enclosureElmt.getAttribute(Enclosure.URL));
            item.setEnclosure(enclosure);
          }
          channel.addItem(item);
        }

        rss.setChannel(channel);
      }
    }
View Full Code Here

Examples of net.minecraftforge.common.ChestGenHooks.addItem()

    AEApi.instance().registries().wireless().registerWirelessHandler( (IWirelessTermHandler) AEApi.instance().items().itemWirelessTerminal.item() );

    if ( AEConfig.instance.isFeatureEnabled( AEFeature.ChestLoot ) )
    {
      ChestGenHooks d = ChestGenHooks.getInfo( ChestGenHooks.MINESHAFT_CORRIDOR );
      d.addItem( new WeightedRandomChestContent( AEApi.instance().materials().materialCertusQuartzCrystal.stack( 1 ), 1, 4, 2 ) );
      d.addItem( new WeightedRandomChestContent( AEApi.instance().materials().materialCertusQuartzDust.stack( 1 ), 1, 4, 2 ) );
    }

    // add villager trading to black smiths for a few basic materials
    if ( AEConfig.instance.isFeatureEnabled( AEFeature.VillagerTrading ) )
View Full Code Here

Examples of net.rim.device.api.ui.ContextMenu.addItem()

        public ContextMenu getContextMenu() {
            final ContextMenu contextMenu = super.getContextMenu();

            if (getSize() > 0) {
                final int index = getSelectedIndex();
                contextMenu.addItem(new View(index));
                contextMenu.addItem(new Edit(index));
                contextMenu.addItem(new Delete(index));
                contextMenu.addItem(new DeleteAll());
                contextMenu.addItem(new SimulateLmmLow());
                contextMenu.addItem(new SimulateLmmMedium());
View Full Code Here

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

      throws FilePersistenceException {
    try {
      final Item item = new Item(identifier, null/* itemTemplate */,
          "item" + identifier);
      final ItemList itemList = getItemList(session);
      itemList.addItem(item);
    } catch (final RuntimeException exception) {
      logger.fatal("adding item " + identifier, exception);
      throw exception;
    }
  }
View Full Code Here

Examples of net.sf.jwan.servlet.gui.menu.WanMenu.addItem()

      wmProgram.setTitle("First Menu")
      AbstractWanServletLayer wdl = (AbstractWanServletLayer)exSub;
      WanMenuEntry wmiSub = new WanMenuEntry();
        wmiSub.setName(wdl.getLayerTitle());
        wmiSub.setHtmlref(wdl.getHtmlHref());
        wmProgram.addItem(wmiSub);
   
    WanDiv div = new WanDiv();
      div.setDivclass(WanDiv.DivClass.iBlock);
      div.addContent(new WanParagraph("This is Paragraph"))
     
View Full Code Here

Examples of net.sf.l2j.gameserver.model.ItemContainer.addItem()

          if (count < 1) {
            if (Rnd.nextInt(99) < 90)
              count = 1;
          }
          if (count > 0) {
            cwh.addItem("Manor", L2Manor.getInstance().getMatureCrop(crop.getId()), count, null, null);
          }
        }
        // reserved and not used money giving back to treasury
        if (crop.getAmount() > 0) {
          c.addToTreasuryNoTax(crop.getAmount() * crop.getPrice());
 
View Full Code Here

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

          for (SeedProduction s : seeds) {
            L2ItemInstance item = ItemTable.getInstance().createDummyItem(s.getId());
            item.setPriceToSell(s.getPrice());
            item.setCount(s.getCanProduce());
            if ((item.getCount() > 0) && (item.getPriceToSell() > 0))
              tradeList.addItem(item);
          }

          BuyListSeed bl = new BuyListSeed(tradeList, castleId, player.getAdena());
          player.sendPacket(bl);
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.PcInventory.addItem()

          continue;

        PcInventory inv = playerInstance.getInventory();

        if (ItemTable.getInstance().createDummyItem(reward[0]).isStackable())
          inv.addItem("TvT Event", reward[0], reward[1], playerInstance, playerInstance);
        else
        {
          for (int i=0;i<reward[1];i++)
            inv.addItem("TvT Event", reward[0], 1, playerInstance, playerInstance);
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.TradeList.addItem()

    {
      player.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
      return;
    }

        TradeList.TradeItem item = trade.addItem(_objectId, _count);
        if (item != null)
        {
        player.sendPacket(new TradeOwnAdd(item));
        trade.getPartner().sendPacket(new TradeOtherAdd(item));
        }
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.