Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.YoutubeLink


    return DataAccessUtils.intResult(getHibernateTemplate().find("select count(*) from YoutubeLink"));
  }

  @Override
  public YoutubeLink getNewYoutubeLink() {
    return new YoutubeLink();
  }
View Full Code Here


  private void doReadData() {

    // select a random song from the table by first starting
    YoutubeLinkService service = (YoutubeLinkService) SpringUtil.getBean("youtubeLinkService");

    YoutubeLink youtubeLink = service.getRandomYoutubeLink();

    if (youtubeLink != null) {
      // set the title
      youTubePanel.setTooltiptext(youtubeLink.getInterpret() + "\n" + " - " + youtubeLink.getTitle() + " - ");
      // clear all old stuff
      iFrame.getChildren().clear();
      // set the URL
      iFrame.setSrc(youtubeLink.getUrl());
    }

  }
View Full Code Here

      // check which button is pressed
      if (event.getTarget().getId().equalsIgnoreCase("btnSelectYoutubeSong")) {

        // select a youtubeLink from the list.
        YoutubeLink youtubeLink = YoutubeLinkSelectListBox.show(win);

        if (youtubeLink != null) {
          // set the title
          youTubePanel.setTooltiptext(youtubeLink.getInterpret() + "\n" + " - " + youtubeLink.getTitle() + " - ");
          // clear all old stuff
          iFrame.getChildren().clear();
          // set the URL
          iFrame.setSrc(youtubeLink.getUrl());
        }

      }
    }
View Full Code Here

     */
    public void onDoubleClicked(Event event) {

      if (listbox.getSelectedItem() != null) {
        Listitem li = listbox.getSelectedItem();
        YoutubeLink youtubeLink = (YoutubeLink) li.getAttribute("data");

        setYoutubeLink(youtubeLink);
        this.onClose();
      }
    }
View Full Code Here

    final class SearchBoxItemRenderer implements ListitemRenderer {

      @Override
      public void render(Listitem item, Object data) throws Exception {

        YoutubeLink youtubeLink = (YoutubeLink) data;

        Listcell lc;

        lc = new Listcell(youtubeLink.getInterpret());
        lc.setParent(item);
        lc = new Listcell(youtubeLink.getTitle());
        lc.setParent(item);

        item.setAttribute("data", data);
        ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClicked");
      }
View Full Code Here

      @Override
      public void onEvent(Event event) throws Exception {

        if (listbox.getSelectedItem() != null) {
          Listitem li = listbox.getSelectedItem();
          YoutubeLink youtubeLink = (YoutubeLink) li.getAttribute("data");

          setYoutubeLink(youtubeLink);
        }
        onClose();
      }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.YoutubeLink

Copyright © 2018 www.massapicom. 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.