Examples of removeItem()


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

            this.willEncrypt = false;
            // also need to get rid of the "Encrypt" in the trailer so readers
            // don't try to decrypt a document which is not encrypted
            COSDocument cosDoc = doc.getDocument();
            COSDictionary trailer = cosDoc.getTrailer();
            trailer.removeItem(COSName.getPDFName("Encrypt"));
        }
        else
        {
            SecurityHandler securityHandler = document.getSecurityHandler();
            if(securityHandler != null)
View Full Code Here

Examples of org.apache.poi.xssf.model.CalculationChain.removeItem()

        int sheetId = (int)sheet.sheet.getSheetId();
        for(Cell c : this){
            XSSFCell cell = (XSSFCell)c;

            //remove the reference in the calculation chain
            if(calcChain != null) calcChain.removeItem(sheetId, cell.getReference());

            CTCell ctCell = cell.getCTCell();
            String r = new CellReference(rownum, cell.getColumnIndex()).formatAsString();
            ctCell.setR(r);
        }
View Full Code Here

Examples of org.apache.poi.xssf.model.CalculationChain.removeItem()

        int sheetId = (int)_sheet.sheet.getSheetId();
        for(Cell c : this){
            XSSFCell cell = (XSSFCell)c;

            //remove the reference in the calculation chain
            if(calcChain != null) calcChain.removeItem(sheetId, cell.getReference());

            CTCell ctCell = cell.getCTCell();
            String r = new CellReference(rownum, cell.getColumnIndex()).formatAsString();
            ctCell.setR(r);
        }
View Full Code Here

Examples of org.apache.syncope.common.to.MappingTO.removeItem()

        // -------------------------------------------
        // Delete role ad-hoc and restore resource mapping
        // -------------------------------------------
        roleService.delete(roleTO.getId());

        resourceUMapping.removeItem(item);
        resourceDBVirAttr.setUmapping(resourceUMapping);
        resourceService.update(RESOURCE_NAME_DBVIRATTR, resourceDBVirAttr);
        // -------------------------------------------
    }
View Full Code Here

Examples of org.bukkit.inventory.Inventory.removeItem()

                                    } else {
                                        iter.remove();
                                        items.add(new Tuple2<ItemInfo, Integer>(inf.a, inf.b - stack.getAmount()));
                                    }
                                    transferItems.add(stack.clone());
                                    cartinventory.removeItem(stack);
                                }
                            }
                        }
                    }
                }
View Full Code Here

Examples of org.bukkit.inventory.PlayerInventory.removeItem()

   
    if (result != null){
      // Check that the player has the correct amount of items
      if (inv.contains(itemHand.getTypeId())){
        // Remove the item using the type id, amount and durability (damage value)
        inv.removeItem(new ItemStack(itemHand.getTypeId(), amount, itemHand.getDurability()));
        inv.addItem(new ItemStack(result.getTypeId(), amount));
        LogHelper.showInfo("smeltSuccess#####[ " + Utils.userFriendlyNames(itemHand.getType().name()), player, ChatColor.GREEN);
      } else {
        LogHelper.showInfo("smeltNotEnough#####[ " + Utils.userFriendlyNames(itemHand.getType().name()), player, ChatColor.RED);
      }
View Full Code Here

Examples of org.bukkit.inventory.PlayerInventory.removeItem()

              || !item.getItemMeta().hasDisplayName()
              || item.getItemMeta().getDisplayName()
                  .contains(ChatColor.MAGIC.toString())) {
            item = plugin.getDropAPI().getItem(tool);
          }
          pi.removeItem(tool);
          pi.addItem(item);
          p.sendMessage(ChatColor.GREEN
              + "You have identified an item!");
          p.updateInventory();
          e.setUseItemInHand(Result.DENY);
View Full Code Here

Examples of org.dspace.content.Collection.removeItem()

            if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.READ))
            {
                // make sure item doesn't belong to this collection
                if (!item.isOwningCollection(toCollection))
                {
                    toCollection.removeItem(item);
                    // FIXME Exception handling
                    try
                    {
                      IndexBrowse ib = new IndexBrowse(context);
                      ib.indexItem(item);
View Full Code Here

Examples of org.nlogo.api.LogoList.removeItem()

      if (index >= list.size()) {
        throw new EngineException(context, this,
            I18N.errorsJ().getN("org.nlogo.prim.etc.$common.indexExceedsListSize",
                index, Dump.logoObject(list), list.size()));
      }
      return list.removeItem(index);
    } else if (obj instanceof String) {
      String string = (String) obj;
      if (index >= string.length()) {
        throw new EngineException(context, this,
            I18N.errorsJ().getN("org.nlogo.prim.etc.$common.indexExceedsStringSize",
View Full Code Here

Examples of org.openbp.core.model.Model.removeItem()

    removeItemFromStore(item);

    // Remove the item from the model finally
    Model model = item.getModel();

    model.removeItem(item);
  }

  /**
   * Moves an item.
   * This can be used to simply rename an item within a model or to move an item to a new model.
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.