Examples of Item


Examples of interfaceFeature.xbean.multInterfaces.purchaseOrder.Items.Item

        int expTotal = (price - 1) * price + (price + 1 + LEN) * (LEN - price) / 2;
        assertEquals(expTotal, poDoc.getTotal());

        XmlObject item = poDoc.getCheapestItem();

        Item expected = it[0];
        expected.setUSPrice(new BigDecimal(30d));
        //       assertEquals(expected, item );
    }
View Full Code Here

Examples of io.fathom.cloud.compute.api.aws.ec2.model.DescribeKeyPairsResponse.Item

    @Override
    public Object go() {
        DescribeKeyPairsResponse response = new DescribeKeyPairsResponse();
        response.requestId = getRequestId();
        response.keys = Lists.newArrayList();
        Item key = new Item();
        key.keyName = "testKey";
        key.keyFingerprint = "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00";
        response.keys.add(key);

        return response;
View Full Code Here

Examples of iryrwarosh.Item

    terminal.write(player.rightHand().name(), player.rightHand().color());
  }

  @Override
  public Screen respondToUserInput(KeyEvent key) {
    Item item = world.item(player.position.x, player.position.y);
   
    switch (key.getKeyChar()){
    case 'z': player.swapLeftHand(world, item); return previous;
    case 'x': player.swapRightHand(world, item); return previous;
    }
View Full Code Here

Examples of items.Item

   * when user selects an item in the menu
   */
  private void display(int i){
    if(i > currentStore.getInventory().getLength())
      System.out.println("problem's right ere capt'n");
    Item item = currentStore.getInventory().getItem(i);
    lblName.setText(item.getName());
    lblWeight.setText(""+item.getWeight()+" lbs");
    lblPrice.setText("$"+currentStore.getInventory().getPrice(item, currentStore.getPrices()));
    lblDesc.setText(item.getDescription());
    lblResponse.setText(item.getResponse());
  }
View Full Code Here

Examples of javax.jcr.Item

                }
            } catch (RepositoryException e) {
                log.error("Failed to retrieve node-specific property: " + e);
            }
            try {
                Item primaryItem = n.getPrimaryItem();
                addHrefProperty(JCR_PRIMARYITEM, new Item[] {primaryItem}, true);
            } catch (ItemNotFoundException e) {
                log.debug("No primary item present on this node '" + getResourcePath() + "'");
            } catch (RepositoryException e) {
                log.error("Error while retrieving primary item: " + e.getMessage());
View Full Code Here

Examples of javax.microedition.lcdui.Item

        ByteArrayOutputStream();
    DataOutputStream dout = new
        DataOutputStream( bout );
    for (int ic = 0; ic < items.length; ic++) {
      try {
        final Item item = items[ic];
        if (item instanceof ChoiceGroup) {
          dout.writeInt(((ChoiceGroup)item).getSelectedIndex());
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("stored selected " + item.getLabel() + "," + ((ChoiceGroup)item).getSelectedIndex());}
          //#endif
        } else if (item instanceof TextField) {
          final String value = ((TextField)item).getString();
          dout.writeInt(value.length());
          byte [] bvalue;
          try {
            bvalue = value.getBytes("UTF-8");
          } catch (UnsupportedEncodingException e) {
            bvalue = value.getBytes();
            //#ifdef DLOGGING
            logger.severe("cannot store value=" + value, e);
            //#endif
          }
          dout.write( bvalue, 0, bvalue.length );
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("set string " + item.getLabel() + "," + ((TextField)item).getString());}
          //#endif
        }
      } catch (IOException e) {
        //#ifdef DLOGGING
        logger.severe("IOException storing selected.", e);
View Full Code Here

Examples of jsx.ui.samaple.todo.TodoUI.Item

    public void remove() throws Exception {
        TodoTasks todos = new TodoTasks();
        todos.list.add(new Task("now"));

        TodoUI w = Widget.of(TodoUI.class, todos);
        Item item = WidgetQuery.findFirst(w, Item.class);

        User.click(item.delete);
        assert todos.list.size() == 0;

        User.click(w.input);
View Full Code Here

Examples of l2p.gameserver.templates.Item

   *
   * @return
   */
  public Item newItem()
  {
    return new Item();
  }
View Full Code Here

Examples of lotus.domino.Item

    }
  }

  public boolean isEmpty(DominoDocument doc, String fieldName) throws Exception {
    if(doc!=null) {
      Item item = doc.getDocument().getFirstItem(fieldName);
      if(item!=null) {
        String content;
        MIMEEntity e = item.getMIMEEntity();
        if(e!=null) {
          content = e.getContentAsText();
        } else {
          content = item.getText();
        }
        if(!StringUtil.isSpace(content)) {
          // Should handle empty json objects/arrays as well
          content = content.trim();
          return content.equals("[]") || content.equals("{}");
View Full Code Here

Examples of lupos.autocomplete.misc.Item

    while ((token = p.getNextToken(content)) != null) {
      final String[] splittedTokenLine = token.toString().split(" ");
      if ((splittedTokenLine[2].equals("QUALIFIEDURI") || splittedTokenLine[2]
          .equals("VARIABLE") || splittedTokenLine[2].equals("PREFIXLABEL")|| splittedTokenLine[2].equals("URI"))
          && !(tokensList.contains(splittedTokenLine[9]))) {
        tokensList.add(new Item(splittedTokenLine[9], true));
      }
    }
    return tokensList;
  }
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.