Examples of addItem()


Examples of com.gwtext.client.widgets.menu.Menu.addItem()

    }

    //TODO: move it to separate class
    private Menu packageNewMenu() {
        Menu m = new Menu();
        m.addItem(new Item(constants.NewPackage1(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                NewPackageWizard wiz = new NewPackageWizard(new Command() {
                    public void execute() {
                        refreshPackageTree();
                    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.ItemContainer.addItem()

            count = 1;
          }

          if(count >= 1)
          {
            cwh.addItem("Manor", L2Manor.getInstance().getMatureCrop(crop.getId()), count, null, null);
          }
        }

        // reserved and not used money giving back to treasury
        if(crop.getAmount() > 0)
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2TradeList.addItem()

              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 com.l2jfrozen.gameserver.model.PcInventory.addItem()

                // Generate the appropriate items
                for (MultiSellIngredient e : entry.getProducts())
                {
                        if (ItemTable.getInstance().createDummyItem(e.getItemId()).isStackable())
                        {
                                inv.addItem("Multisell["+_listId+"]" , e.getItemId(), (e.getItemCount() * _amount), player, player.getTarget());
                        }
                        else
                        {
                                L2ItemInstance product = null;
                                for (int i = 0; i < e.getItemCount() * _amount; i++)
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.TradeList.addItem()

        player.sendPacket(new PrivateStoreManageListSell(player));
        player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
        return;
      }
     
      tradeList.addItem(objectId, count, price);
    }
   
    if (_count <= 0)
    {
      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.addItem()

        L2Item item_templ = ItemTable.getInstance().getTemplate(item.getItemId());
       
        if(!player.getInventory().validateCapacity(item_templ))
          DropItem(player, item);
        else
          player.addItem("ChampionLoot", item.getItemId(), item.getCount(), this, true);
         
      }
      else
      {
        DropItem(player, item);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.InventoryUpdate.addItem()

            }
            else
            {
              iu.addModifiedItem(destroyItem);
            }
            iu.addItem(crystals);

            activeChar.sendPacket(iu);
          }
          else
          {
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PetInventoryUpdate.addItem()

      return false;
    }

    // Send Pet inventory update packet
    PetInventoryUpdate petIU = new PetInventoryUpdate();
    petIU.addItem(item);
    getOwner().sendPacket(petIU);
    petIU = null;

    if(sendMessage)
    {
View Full Code Here

Examples of com.l2jfrozen.gameserver.templates.L2PcTemplate.addItem()

        //5items must go here
        for(int x = 1; x < 6; x++)
        {
          if(rset.getInt("items" + x) != 0)
          {
            ct.addItem(rset.getInt("items" + x));
          }
        }
        _templates.put(ct.classId.getId(), ct);

        set = null;
View Full Code Here

Examples of com.lightcrafts.ui.toolkit.WidePopupComboBox.addItem()

            ColorProfileInfo.arrangeForMenu(Profiles);
        Set<String> names = new HashSet<String>();
        for (ColorProfileInfo info : profiles) {
            if (info != null) {
                String name = info.getName();
                combo.addItem(name);
                names.add(name);
            }
            else {
                combo.addItem(null);
            }
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.