Examples of Item


Examples of org.apache.wicket.markup.repeater.Item

      @SuppressWarnings({ "rawtypes", "unchecked" })
      @Override
      protected Item newCellItem(final String id, final int index, final IModel model)
      {
        Item item = DataTable.this.newCellItem(id, index, model);
        final IColumn<T, S> column = DataTable.this.columns.get(index);
        if (column instanceof IStyledColumn)
        {
          item.add(new CssAttributeBehavior()
          {
            private static final long serialVersionUID = 1L;

            @Override
            protected String getCssClass()
View Full Code Here

Examples of org.atc.tools.ant.Item

    FormattedItem fi = new FormattedItem();
    fi.setItem(i);
    fi.setFormat(fmt);

    Item item = fi.getItem();
    fi.setValue(String.format("\"%s\",%s,\"%s\", \"%s\"",
        item.getOrigin().trim(),
        item.getLineNumber(),
        item.getType(),
        item.getContent().trim()));

    return fi;
  }
View Full Code Here

Examples of org.auraframework.component.auradev.TestDataProviderController.Item

    private final List<Item> items;
   
    public TestDataProviderModel() throws Exception {
        this.items = new ArrayList<>(10);
        for (int i = 0; i < 10; i++) {
            items.add(new Item("label" + i, "value" + i));
        }
    }
View Full Code Here

Examples of org.b3log.solo.model.feed.rss.Item

            final boolean isFullContent = "fullContent".equals(preference.getString(Preference.FEED_OUTPUT_MODE));

            for (int i = 0; i < articles.length(); i++) {
                final JSONObject article = articles.getJSONObject(i);
                final Item item = new Item();
                channel.addItem(item);
                final String title = StringEscapeUtils.escapeXml(article.getString(Article.ARTICLE_TITLE));
                item.setTitle(title);
                final String description = isFullContent ? StringEscapeUtils.escapeXml(article.getString(Article.ARTICLE_CONTENT))
                                           : StringEscapeUtils.escapeXml(article.optString(Article.ARTICLE_ABSTRACT));
                item.setDescription(description);
                final Date pubDate = (Date) article.get(Article.ARTICLE_UPDATE_DATE);
                item.setPubDate(pubDate);
                final String link = "http://" + blogHost + article.getString(Article.ARTICLE_PERMALINK);
                item.setLink(link);
                item.setGUID(link);

                final String authorEmail = article.getString(Article.ARTICLE_AUTHOR_EMAIL);
                if (hasMultipleUsers) {
                    authorName = StringEscapeUtils.escapeXml(articleUtils.getAuthor(article).getString(User.USER_NAME));
                }

                item.setAuthor(authorEmail + "(" + authorName + ")");

                final String tagsString = article.getString(Article.ARTICLE_TAGS_REF);
                final String[] tagStrings = tagsString.split(",");
                for (int j = 0; j < tagStrings.length; j++) {
                    final org.b3log.solo.model.feed.rss.Category catetory = new org.b3log.solo.model.feed.rss.Category();
                    item.addCatetory(catetory);
                    final String tag = tagStrings[j];
                    catetory.setTerm(tag);
                }
            }
View Full Code Here

Examples of org.baeldung.jackson.dtos.Item

    // tests - custom serializer

    @Test
    public final void whenSerializing_thenNoExceptions() throws JsonGenerationException, JsonMappingException, IOException {
        final Item myItem = new Item(1, "theItem", new User(2, "theUser"));
        final String serialized = new ObjectMapper().writeValueAsString(myItem);
        System.out.println(serialized);
    }
View Full Code Here

Examples of org.blueoxygen.postila.entity.Item

            model.removeRow(0);
        }

        if(!list.isEmpty()){
            for(Object ob : list){
                Item i = (Item) ob;
                model.addRow(new Object[]{
                    i.getName(), i.getVersionNo(), i.getCategory().getName(), i.getUom().getName(),
                        i.getListPrice(), i.getStandartPrice(), i.getLimitPrice()
                });
            }
        }
  }
View Full Code Here

Examples of org.brixcms.markup.tag.Item

    @Override
    public Item nextMarkupItem() {
        if (items == null) {
            List<Item> temp = new ArrayList<Item>();
            Item i = getDelegate().nextMarkupItem();
            while (i != null) {
                temp.add(i);
                i = getDelegate().nextMarkupItem();
            }
            items = transform(temp);
View Full Code Here

Examples of org.bukkit.entity.Item

      if (!LogicUtil.nullOrEmpty(stack)) {
        // Spawn new item for this item stack
        Random random = WorldUtil.getRandom(this.location.getWorld());
        Location spawnLoc = this.location.clone().add(-0.45, -0.45, -0.45);
        spawnLoc = spawnLoc.add(0.9f * random.nextFloat(), 0.9f * random.nextFloat(), 0.9f * random.nextFloat());
        Item item = location.getWorld().dropItem(spawnLoc, stack);
        item.setVelocity(new Vector(0, 0, 0));
        this.items.add(item);
      }
    } else {
      // Set item stack, if null, kill the item
      Item item = this.items.get(index);
      EntityUtil.setDead(item, LogicUtil.nullOrEmpty(stack));
      if (!item.isDead()) {
        item.setItemStack(stack);
        this.items.set(index, ItemUtil.respawnItem(item));
      }
    }
  }
View Full Code Here

Examples of org.dayatang.utils.beans.Item

        assertEquals(12.5, item.getPrice(), 0.0001);
    }

    @Test
    public void testCopyPropertiesFrom() {
        Item item1 = new Item(12, "abc", true);
        ConcreteItem item2 = new ConcreteItem(20, "xyz", false);
        item2.setPrice(15.5);
        instance = new BeanUtils(item2);
        instance.copyPropertiesFrom(item1);
        assertEquals("abc", item2.getName());
View Full Code Here

Examples of org.directwebremoting.io.Item

     * @see org.directwebremoting.datasync.StoreProvider#get(java.lang.String)
     */
    public Item viewItem(String itemId)
    {
        T object = getObject(itemId);
        return new Item(itemId, object);
    }
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.