Examples of Item


Examples of com.google.checkout.sdk.domain.Item

     * @return This builder.
     */
    public CheckoutShoppingCartBuilder addItem(String name,
        String description, BigDecimal unitPrice, int quantity) {

      Item newItem = new Item();
      newItem.setItemName(name);
      newItem.setItemDescription(description);
      newItem.setUnitPrice(cartPoster.apiContext.makeMoney(unitPrice));
      newItem.setQuantity(quantity);

      return addItem(newItem);
    }
View Full Code Here

Examples of com.google.code.timetrail.backend.Item

   * Get the food price weight
   *
 
   * @return food price weight */
  public String getFoodPriceWeight() {
      final Item food = playerInv.getFood();
    return ("$" + (food.getValue() -
            ((food.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getFood().getWeight() + " lb.");
  }
View Full Code Here

Examples of com.google.speedtracer.client.visualizations.view.Tree.Item

            return Double.compare(e1.getTime(), e2.getTime());
          }
        });

        Item newSelection = selected.get(selected.size() - 1);
        // Find how far to move table down to current selection.
        // We have to recursively walk up to compute the correct offset top.
        // We will encounter the UI padding two extra times along the way
        // crossing the tree boundary and crossing the details div boundary,
        // totally 3 encounters with padding we have to account for.
        int minTableOffset = Math.max(pieChartHeight,
            recursiveGetOffsetTop(newSelection.getElement())
                - (3 * getCss().uiPadding()));

        if (selected.size() == 1) {
          // We have a single selection. Simply display the details for the
          // single node.
          detailsTable = createDetailsTable(detailsTableContainer,
              minTableOffset, (UiEvent) newSelection.getItemTarget());

        } else {
          // Display aggregate information over the range of nodes.
          detailsTable = createMultiNodeDetailsTable(detailsTableContainer,
              minTableOffset, selected);
View Full Code Here

Examples of com.googlecode.objectify.persister.test.Item

    Long id = 23353454L;

    String kind = factory.getMetadata(Item.class).getKind();
    Key value = KeyFactory.createKey(kind, id);
    Item pojo = new Item();

    Object result = converter.forPojo(value, Item.class, loadContext, pojo);

    assertNotNull(result);
    assertTrue(result instanceof Item);
View Full Code Here

Examples of com.googlecode.psiprobe.model.jsp.Item

                    //
                    // mark all items as missing
                    //
                    for (Iterator it = summary.getItems().keySet().iterator(); it.hasNext();) {
                        Item item = (Item) summary.getItems().get(it.next());
                        item.setMissing(true);
                    }

                    //
                    // we need to pass context classloader here, so the jsps can reference /WEB-INF/classes and
                    // /WEB-INF/lib. JspCompilationContext would only take URLClassLoader, so we fake it
                    //
                    compileItem("/", opt, context, jrctx, summary,
                            new URLClassLoader(new URL[]{}, context.getLoader().getClassLoader()), 0, compile);
                } finally {
                    jrctx.destroy();
                }
            }

            //
            // delete "missing" items by keeping "not missing" ones
            //
            Map hashMap = new HashMap();
            for (Iterator it = summary.getItems().keySet().iterator(); it.hasNext();) {
                Object key = it.next();
                Item item = (Item) summary.getItems().get(key);
                if (!item.isMissing()) {
                    hashMap.put(key, item);
                }
            }

            summary.setItems(hashMap);
View Full Code Here

Examples of com.gwtext.client.widgets.menu.Item

        } else if (xtype.equalsIgnoreCase("tbbutton")) {
            return new ToolbarButton(jsObj);
        }
        //menu items
        else if (xtype.equalsIgnoreCase("menu-item")) {
            return new Item(jsObj);
        }
        //form components
        else if (xtype.equalsIgnoreCase("checkbox")) {
            return new Checkbox(jsObj);
        } else if (xtype.equalsIgnoreCase("combo")) {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.Item

        if ( builder == null )
        {
            Log.warn(this, "Attempt to use OpFetch - need to enable first with a call to OpFetch.enable()") ;
            return OpLabel.create("fetch/"+serviceNode, OpTable.unit()) ;
        }
        Item item = Item.createNode(elt.getFetchNode()) ;
        ItemList args = new ItemList() ;
        args.add(item) ;
        return builder.make(args) ;
    }
View Full Code Here

Examples of com.hp.jena.rules.ast.Item

public class TestItem
    {
    @Test public void testItemFunctorAccessors()
        {
        List<Expr> empty = new ArrayList<Expr>();
        Item functor = Item.createFunctor( "f", empty );
        assertFalse( functor.isURI() );
        assertFalse( functor.isVariable() );
        assertFalse( functor.isLiteral() );
        assertFalse( functor.isBlank() );
        assertFalse( functor.isExplicitBlank() );
        assertTrue( functor.isFunctor() );
        assertFalse( functor.isExpr() );
        assertEquals( "f", functor.getFunctorName() );
        assertSame( empty, functor.getFunctorArgs() );
        }
View Full Code Here

Examples of com.ibatis.jpetstore.domain.Item

    return queryForPaginatedList("getItemListByProduct", productId, PAGE_SIZE);
  }

  public Item getItem(String itemId) {
    Integer i = (Integer) queryForObject("getInventoryQuantity", itemId);
    Item item = (Item) queryForObject("getItem", itemId);
    item.setQuantity(i.intValue());
    return item;
  }
View Full Code Here

Examples of com.infochimps.vayacondios.ItemSets.Item

  public static String populateSet(VayacondiosClient client,
                          String orgName,
                          String... itemStrings) throws IOException {
    ArrayList<Item> items = new ArrayList();
    for (String str : itemStrings) items.add(new Item(str));
    client.organization(orgName).itemsets().create(VCD_TOPIC, VCD_ID, items);
    StringBuilder builder = new StringBuilder();
    builder.append(itemStrings[0]);
    for (int i = 1; i < itemStrings.length; i++) {
      builder.append(",");
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.