Examples of addLabel()


Examples of org.rssowl.core.persist.INews.addLabel()

    news1.setPublishDate(new Date(System.currentTimeMillis() - 4 * DAY));
    news1.addLabel(label);

    INews news2 = fFactory.createNews(null, feed2, new Date());
    news2.setPublishDate(new Date(System.currentTimeMillis() - 3 * DAY));
    news2.addLabel(label);

    DynamicDAO.save(feed1);
    DynamicDAO.save(feed2);
    DynamicDAO.save(feed3);

View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

    IFeed feed2 = fFactory.createFeed(null, new URI("http://www.feed2.com"));
    IFeed feed3 = fFactory.createFeed(null, new URI("http://www.feed3.com"));

    INews news1 = fFactory.createNews(null, feed1, new Date());
    news1.setPublishDate(new Date(System.currentTimeMillis() - 4 * DAY));
    news1.addLabel(label);

    INews news2 = fFactory.createNews(null, feed2, new Date());
    news2.setPublishDate(new Date(System.currentTimeMillis() - 3 * DAY));

    DynamicDAO.save(feed1);
View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

      INews news1 = createNews(feed, "Foo", "http://www.news.com/news1.html", State.READ);
      ICategory news1cat1 = fFactory.createCategory(null, news1);
      news1cat1.setName("apple");
      ILabel label1 = fFactory.createLabel(null, "work");
      news1.addLabel(label1);
      IAttachment att1news1 = fFactory.createAttachment(null, news1);
      att1news1.setLink(new URI("http://www.attachment.com/att1news1.file"));
      att1news1.setType("bin/mp3");

      INews news2 = createNews(feed, " Bar", "http://www.news.com/news2.html", State.NEW);
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.addLabel()

              /* Item Exists */
              if (news != null && news.isVisible()) {
                if (SyncUtils.isSynchronized(news) && news.getLabels().contains(label)) {
                  SyncItem syncItem = SyncItem.toSyncItem(news);
                  syncItem.addLabel(newName);
                  syncItem.removeLabel(oldName);
                  syncItems.add(syncItem);
                }
              }

View Full Code Here

Examples of org.sikuli.api.visual.Canvas.addLabel()

      ScreenRegion innerRegion = Relative.to(screenRegion).shorter(100).narrower(100).getScreenRegion();

      // create a canvas to draw visualization on the screen
      Canvas c = new ScreenRegionCanvas(screenRegion);
      c.addBox(innerRegion);
      c.addLabel(innerRegion.getCenter(), "Screen " + screenId).withFontSize(30);
      c.addImage(Relative.to(innerRegion).center().above(200).getScreenLocation(), ImageIO.read(Images.Dog));
      c.show();
     
      // hover the mouse cursor to each corner of the inner circle
      mouse.hover(Relative.to(innerRegion).topLeft().getScreenLocation());
View Full Code Here

Examples of org.sikuli.api.visual.DesktopCanvas.addLabel()

    // to the region occupied by this target
    ScreenRegion r = s.wait(imageTarget,5000);
       
    // Display "Hello World" next to the found target for 3 seconds
    Canvas canvas = new DesktopCanvas();
    canvas.addLabel(r, "Hello World").display(3);
   
    // Click the center of the found target
    Mouse mouse = new DesktopMouse();
    mouse.click(r.getCenter());
  }
View Full Code Here

Examples of org.sikuli.api.visual.ScreenRegionCanvas.addLabel()

      ScreenRegion innerRegion = Relative.to(screenRegion).shorter(100).narrower(100).getScreenRegion();

      // create a canvas to draw visualization on the screen
      Canvas c = new ScreenRegionCanvas(screenRegion);
      c.addBox(innerRegion);
      c.addLabel(innerRegion.getCenter(), "Screen " + screenId).withFontSize(30);
      c.addImage(Relative.to(innerRegion).center().above(200).getScreenLocation(), ImageIO.read(Images.Dog));
      c.show();
     
      // hover the mouse cursor to each corner of the inner circle
      mouse.hover(Relative.to(innerRegion).topLeft().getScreenLocation());
View Full Code Here

Examples of org.springframework.data.neo4j.aspects.Person.addLabel()

        String[] labelNames = {"Person", "Developer", "Father","_Person"};
        Person p = new Person("Michael",39).persist();
//        assertThat(p.getLabels(), hasItems(labelNames[0],labelNames[3]));
        p = neo4jTemplate.findOne(p.getId(), Person.class);
        assertThat(p.getLabels(), hasItems(labelNames[0],labelNames[3]));
        p.addLabel(labelNames[1]);
        p.addLabel(labelNames[2]);
        neo4jTemplate.save(p);
        System.out.println("p.getLabels() = " + p.getLabels());
        assertEquals(4, IteratorUtil.count(getNodeState(p).getLabels()));
        for (Label l : getNodeState(p).getLabels()) {
View Full Code Here

Examples of org.springframework.richclient.form.builder.FormLayoutFormBuilder.addLabel()

    formBuilder.nextRow();
    formBuilder.addPropertyAndLabel("contactType");
    formBuilder.nextRow();
        NumberBinder binder = new NumberBinder();
        binder.setLeftDecoration("€");
        formBuilder.addLabel("monthlyIncome");
        formBuilder.addBinding(binder.bind(getFormModel(), "monthlyIncome", new HashMap()), 3);
    formBuilder.nextRow();
    formBuilder.addHorizontalSeparator("Address", 7);
    formBuilder.nextRow();
    formBuilder.addPropertyAndLabel("address.address1");
View Full Code Here

Examples of util.ui.EnhancedPanelBuilder.addLabel()

        EnhancedPanelBuilder pb = new EnhancedPanelBuilder(lay);
        pb.getPanel().setOpaque(false);

        SoftwareUpdateItem item = (SoftwareUpdateItem)value;

        JLabel label = pb.addLabel(HTMLTextHelper.convertHtmlToText(item.getName()) + " " + item.getVersion(), cc.xy(2,2));
        label.setFont(label.getFont().deriveFont(Font.BOLD, label.getFont().getSize2D()+2));

        int width = parentScrollPane.getSize().width - parentScrollPane.getVerticalScrollBar().getWidth() - leftColumnWidth - Sizes.dialogUnitXAsPixel(5,pb.getPanel()) * 4 - parentScrollPane.getInsets().left - parentScrollPane.getInsets().right;

        if (width <= 0) {
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.