Examples of Show


Examples of org.odlabs.wiquery.core.effects.basic.Show

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Show") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Show(effectSpeedPanel.getSpeed())).render(true)).toString());
        };       
      });
     
     
     
View Full Code Here

Examples of org.odlabs.wiquery.core.effects.basic.Show

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Show") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Show(effectSpeedPanel.getSpeed())).render(true)).toString());
        };       
      });
     
     
     
View Full Code Here

Examples of sk.linhard.openair.eventmodel.Show

      if (queue.isEmpty()) {
        appended = false;
      } else {
        appended = append(aTime, queue.getFirst());
        if (appended) {
          Show p = queue.removeFirst();
          if (p.isOldVersion()) { // is eliminable ?
            if (result == null) {
              result = new HashSet<Show>();
            }
            result.add(p);
          }
View Full Code Here

Examples of sk.linhard.openair.eventmodel.Show

      type = StageProgramItemData.CANCELLED;
    } else if (p.isNewVersion()) {
      type = StageProgramItemData.NEW;
    } else if (p.isOldVersion()) {
      type = StageProgramItemData.OLD;
      Show pnew = p.getNewVersion();
      if (pnew.isRelevant(aTime)) { // only display hint when the replacement performance is relevant
        hint = "\u2192 " + DateUtil.format(pnew.getStart(), "HH:mm");
        if (p.isMoved()) { // moved to different stage, append also stage name
          hint += ", " + pnew.getStage().getName();
        }
      }
    }
    // TODO: we want to show short name if available
    return new StageProgramItemData(type, p.getName(),  getFormattedTimes(p), hint);
View Full Code Here

Examples of sk.linhard.openair.eventmodel.Show

   */
  private DateTime getNextChange(DayProgram dp, DateTime aTime) {
    if (!dp.hasRelevantShows(aTime)) {
      return null;
    }
    Show relp = dp.getRelevantShows(aTime)[0];
    if (relp.isRunning(aTime)) {
      return relp.getEnd();
    }
    return relp.getStart();
  }
View Full Code Here

Examples of sk.linhard.openair.eventmodel.Show

          for (int k = 0; k < dayKids.getLength(); k++) {
            Node showNode = dayKids.item(k);
            if (showNode.getNodeType() != Node.ELEMENT_NODE && !showNode.getNodeName().equals("show")) {
              continue;
            }
            Show show = dayProgram.addShow(
                showNode.getAttributes().getNamedItem("name").getTextContent(),
                Util.dateTime(showNode.getAttributes().getNamedItem("start").getTextContent()),
                Util.duration(showNode.getAttributes().getNamedItem("duration").getTextContent())
            );
            if (showNode.getAttributes().getNamedItem("shortName") != null) {
              show.setShortName(showNode.getAttributes().getNamedItem("shortName").getTextContent());
            }
            if (showNode.getAttributes().getNamedItem("cancelled") != null) {
              show.setCancelled(new Boolean(showNode.getAttributes().getNamedItem("cancelled").getTextContent()));
            }
            if (showNode.getAttributes().getNamedItem("id") != null) {
              String showId = showNode.getAttributes().getNamedItem("id").getTextContent();
              ShowMetadata showMetadata = (ShowMetadata) metadata.get(showId);
              if (showMetadata != null) {
                show.setMetadata(showMetadata);
              }
              Show theOtherShow = showById.get(showId);
              if (theOtherShow != null) {
                if (showNode.getAttributes().getNamedItem("oldVersion") == null
                  || new Boolean(showNode.getAttributes().getNamedItem("oldVersion").getTextContent())) {
                  show.setNewVersion(theOtherShow);
                  theOtherShow.setOldVersion(show);
                } else {
                  show.setOldVersion(theOtherShow);
                  theOtherShow.setNewVersion(show);
                }
              } else {
                // we don't know our other show yet
                showById.put(showId, show);
              }
View Full Code Here

Examples of sk.linhard.openair.eventmodel.Show

    stageBday1.addShow("Performance B2", dateTime("01-01-2010 11:30"), duration("1:00"));
    stageBday1.addShow("Performance B3", dateTime("01-01-2010 13:00"), duration("1:00"));

    DayProgram stageBday2 = stageB.addDay(dateTime("02-01-2010 0:00"));
    stageBday2.addShow("Performance B4", dateTime("02-01-2010 10:00"), duration("1:00"));
    Show b5 = stageBday2.addShow("Performance B5", dateTime("02-01-2010 11:30"), duration("1:00"));
    Show b6 = stageBday2.addShow("Performance B6", dateTime("02-01-2010 13:00"), duration("2:00"));
   
    Show b5new = b5.change(null, dateTime("02-01-2010 15:30"), duration("1:00"));
    b6.cancel();
   
    Stage stageC = e.addStage("Stage C");
    DayProgram stageCday1 = stageC.addDay(dateTime("01-01-2010 0:00"));
    stageCday1.addShow("Performance C1", dateTime("01-01-2010 10:00"), duration("1:00"));
View Full Code Here

Examples of unify.data.Show

            numEpisodes++;
          }
        }
      }
      for(Show dbShow : showDao.queryForAll()) {
        Show myShow = ShowLibrary.getInstance().getShow(dbShow.getTitle());
        if(myShow==null) {
          for(Season season : dbShow.seasons) {
            episodeDao.delete(season.getEpisodes());
          }
          seasonDao.delete(dbShow.seasons);
View Full Code Here

Examples of unify.data.Show

      LOGGER.finest("Initializing shows file input...");
    } catch (FileNotFoundException e) {
      LOGGER.severe("File " + this.showFile.getName() + " does not exist.");
      System.exit(1);
    }
    Show s1;
    while (showscanner.hasNext()) {
      String show = showscanner.nextLine();
      s1 = new Show(show.split(" :: ")[0]);
      try {
        s1.setCurSeason(Integer.parseInt(show.split(" :: ")[1]));
        s1.setLastEpisode(Integer.parseInt(show.split(" :: ")[2]));
      } catch (NumberFormatException e) {
        LOGGER.severe("Invalid number format for " + show.split(" :: ")[1]
            + " or " + show.split(" :: ")[2]);
        System.exit(1);
      }
View Full Code Here

Examples of unify.data.Show

      LOGGER.finest("Initializing available file input...");
    } catch (FileNotFoundException e) {
      LOGGER.warning("File " + this.availableFile.getName() + " does not exist.");
      return;
    }
    Show show;
    int availCount = 0;
    while (showscanner.hasNext()) {
      String showLine = showscanner.nextLine();
      String myShowTitle = showLine.split(" :: ")[0];
      show = showLib.getShow(myShowTitle);
      if(show!=null) {
        availCount++;
        try {
          int seasonNum = (Integer.parseInt(showLine.split(" :: ")[1]));
          int episodeNum = (Integer.parseInt(showLine.split(" :: ")[2]));
          String link = showLine.split(" :: ")[3];
          String label = showLine.split(" :: ")[4];
          Season season = show.findSeason(seasonNum);
          if(season==null) {
            season = show.addSeason(seasonNum);
          }
          season.addEpisode(episodeNum, link, label);
        } catch (NumberFormatException e) {
          LOGGER.severe("Invalid number format for " + showLine.split(" :: ")[1]
              + " or " + showLine.split(" :: ")[2]);
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.