Package devplugin

Examples of devplugin.Program


  /**
   * Shows the Popup
   * @param e Mouse-Event
   */
  private void showPopup(MouseEvent e) {
    Program prg = getProgramByClick(e);

    if (prg == null) {
      return;
    }

View Full Code Here


        for (final DeviceIf dev : devices) {
            ArrayList<AbstractAction> commandList = new ArrayList<AbstractAction>();

            if (dev.isAbleToAddAndRemovePrograms()) {
                final Program test = dev.getProgramForProgramInList(program);

                if (test != null) {
                    AbstractAction caction = new AbstractAction() {
                        public void actionPerformed(ActionEvent evt) {
                            dev.remove(parent, test);
View Full Code Here

    final int maxDays = mSettings.getDays();
    for (int days = 0; days < maxDays; days++) {
      for (int i = 0; i < channels.length; ++i) {
        for (Iterator<Program> iter = devplugin.Plugin.getPluginManager()
            .getChannelDayProgram(date, channels[i]); iter.hasNext();) {
          final Program prog = iter.next();
          String genreField = prog.getTextField(ProgramFieldType.GENRE_TYPE);
          if (genreField != null) {
            // some programs have buggy fields with brackets
            if (genreField.startsWith("(") && genreField.endsWith(")")) {
              genreField = genreField.substring(1, genreField.length() - 1);
            }
View Full Code Here

    else if(mProgramsList.getSelectedValue() == null) {
      ArrayList<Program> expiredProgs = new ArrayList<Program>();
      ArrayList<Program> notExpiredProgs = new ArrayList<Program>();

      for(int i = 0; i < mProgramListModel.size(); i++) {
        Program prog = (Program)mProgramListModel.get(i);

        if(prog.isExpired()) {
          expiredProgs.add(prog);
        }
        else {
          notExpiredProgs.add(prog);
        }
View Full Code Here

    MarkList list = (MarkList)mMarkListsList.getSelectedValue();
    int index = -1;

    if (mShowPrograms.isSelected()) {
      for (int i = 0; i < list.size(); i++) {
        Program prog = list.get(i);

        if(prog != null) {
          mProgramListModel.addElement(prog);

          if(!list.get(i).isExpired() && index == -1) {
View Full Code Here

    list.toArray(asArr);
    return asArr;
  }

  private void setProgram(Program program, int maxHeight) {
    Program oldProgram = mProgram;
    mProgram = program;

    boolean programChanged = (oldProgram != program);
    if (programChanged) {
      // Get the start time
View Full Code Here

    QueuePage currentPage=new QueuePage(mSettings, getPageFormat());
    pages.add(currentPage);
    for (int i=0; i<pageModel.getColumnCount(); i++) {
      ColumnModel column = pageModel.getColumnAt(i);
      for (int k=0; k<column.getProgramCount();k++) {
        Program program = column.getProgramAt(k);
        if (!currentPage.addProgram(program)) {
          currentPage = new QueuePage(mSettings, getPageFormat());
          pages.add(currentPage);
          currentPage.addProgram(program, true);
        }
View Full Code Here


  private static void addProgramToList(ArrayList<Program> progList, Date date, Channel channel, int startHour, int endHour, ProgramFilter filter) {
    for (int dateOffset = -1; dateOffset <= 1; dateOffset++) {
      for (Iterator<Program> it = Plugin.getPluginManager().getChannelDayProgram(date.addDays(dateOffset),channel); it.hasNext();) {
        Program prog = it.next();
        if (prog.getDate().getNumberOfDaysSince(date) == 0 && prog.getHours()>=startHour && prog.getHours()<endHour && filter.accept(prog)) {
          progList.add(prog);
        }
        else if (prog.getDate().getNumberOfDaysSince(date) == 1 && prog.getHours()>=startHour-24 && prog.getHours()<endHour-24 && filter.accept(prog)) {
          progList.add(prog);
        }
      }
    }
  }
View Full Code Here

                Channel chan = conf.getChannelForExternalId(channel);

                if (chan != null) {
                  for (Iterator<Program> it = CapturePlugin.getPluginManager().getChannelDayProgram(date, chan); it.hasNext();) {
                    Program prog = it.next();

                    if ((prog.getHours() == hour)
                            && (prog.getMinutes() == min)
                            && (prog.getTitle().trim().toLowerCase()
                                    .equals(title.trim().toLowerCase()))) {
                        programs.add(prog);
                        mProgramMapping.put(prog, id);
                    }
                  }
View Full Code Here

      Date date = program.getDate();
      if (date == null) {
        return false;
      }

      Program last = null;
      for (Iterator<Program> it = Plugin.getPluginManager().getChannelDayProgram(program.getDate(), channel); it.hasNext();) {
        last = it.next();
      }

      if (program == last) {
View Full Code Here

TOP

Related Classes of devplugin.Program

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.