Examples of Tip


Examples of org.jdesktop.swingx.tips.TipOfTheDayModel.Tip

    // tip does not fall in current tip range
    if (tipPane.getModel() == null || tipPane.getModel().getTipCount() == 0
      || (currentTip < 0 && currentTip >= tipPane.getModel().getTipCount())) {
      currentTipComponent = new JLabel();
    } else {   
      Tip tip = tipPane.getModel().getTipAt(currentTip);

      Object tipObject = tip.getTip();
      if (tipObject instanceof Component) {
        currentTipComponent = (Component)tipObject;
      } else if (tipObject instanceof Icon) {
        currentTipComponent = new JLabel((Icon)tipObject);
      } else {
View Full Code Here

Examples of org.netbeans.server.uihandler.TipOfTheDay.Tip

    public void testParse() throws Exception{
        db = TipOfTheDay.create(getClass().getResource("kb-2007-03-08.xml"));
        Map<String, Integer> map = new HashMap<String, Integer>();
        map.put("J2SE", 10);
        Tip t = db.find(map.entrySet());
        assertNotNull("Some J2SE tip should be given", t);
    }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Tip

  public void get() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/TIP_ID?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(GET))
      .andRespond(withResponse(new ClassPathResource("testdata/tip.json", getClass()), responseHeaders));
   
    Tip tip = foursquare.tipOperations().get("TIP_ID");
    assertEquals("4b5e662a70c603bba7d790b4", tip.getId());
    mockServer.verify();
  }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Tip

    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/add?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andExpect(body("venueId=VENUE_ID&text=TEXT&url=URL"))
      .andRespond(withResponse(new ClassPathResource("testdata/tip.json", getClass()), responseHeaders));
   
    Tip tip = foursquare.tipOperations().add("VENUE_ID", "TEXT", "URL");
    assertEquals("4b5e662a70c603bba7d790b4", tip.getId());
    mockServer.verify();
  }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Tip

  public void unmark() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/TIP_ID/unmark?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andRespond(withResponse(new ClassPathResource("testdata/tip.json", getClass()), responseHeaders));
   
    Tip tip = foursquare.tipOperations().unmarkTodo("TIP_ID");
    assertTrue(tip != null);
    mockServer.verify();
  }
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.