Examples of addDays()


Examples of devplugin.Date.addDays()

    Hashtable<String, Program> table = new Hashtable<String, Program>();

    Channel[] channels = Plugin.getPluginManager().getSubscribedChannels();

    Date date = new Date();
    date = date.addDays(-1);
    for (int d = 0; d < 32; d++) {
      for (Channel channel : channels) {
        for (Iterator<Program> it = Plugin.getPluginManager().getChannelDayProgram(date, channel); it.hasNext();) {
          Program program = it.next();
          if ((program != null) && mPlugin.isProgramRateable(program)) {
View Full Code Here

Examples of devplugin.Date.addDays()

            }
          }
        }
      }

      date = date.addDays(1);
    }

    return table;
  }
}
View Full Code Here

Examples of devplugin.Date.addDays()

    int value = 0;
    Date currentDate = Date.getCurrentDate();
    for (Channel channel : channels) {
      progressMonitor.setValue(value++);
      for (int i = -1; i < days; i++) {
        correctDayProgramFile(currentDate.addDays(i), channel);
      }
    }
    mNewDayProgramsAfterUpdate.clear();

    FavoritesPlugin.getInstance().waitForFinishingUpdateThreads();
View Full Code Here

Examples of devplugin.Date.addDays()

    }
    // remove the dates from the "available" set
    Date date = Date.getCurrentDate().addDays(-lifespan);
    while (dataAvailable(date)) {
      mAvailableDateSet.remove(date);
      date = date.addDays(-1);
    }

    // search files
    final Date d = Date.getCurrentDate().addDays(-lifespan);
View Full Code Here

Examples of devplugin.Date.addDays()

  private Date mCurrentDate = Date.getCurrentDate();

  public CalendarTableModel(final Date firstDate) {
    Date date = firstDate;
    while (date.getDayOfWeek() != Calendar.MONDAY) {
      date = date.addDays(-1);
    }
    for (int y = 0; y < ROWS; y++) {
      for (int x = 0; x < COLUMNS; x++) {
        mDate[y][x] = date;
        date = date.addDays(1);
View Full Code Here

Examples of devplugin.Date.addDays()

      date = date.addDays(-1);
    }
    for (int y = 0; y < ROWS; y++) {
      for (int x = 0; x < COLUMNS; x++) {
        mDate[y][x] = date;
        date = date.addDays(1);
      }
    }
  }

  @Override
View Full Code Here

Examples of devplugin.Date.addDays()

  protected void rebuildControls() {
    removeAll();
    setLayout(new GridLayout(ROWS, COLUMNS));
    Date date = getFirstDate();
    while (date.getDayOfWeek() != Calendar.MONDAY) {
      date = date.addDays(-1);
    }
    Date weekday = date;
    for (int i = 0; i < COLUMNS; i++) {
      components[i][0] = new JLabel(new SimpleDateFormat("E").format(weekday
          .getCalendar().getTime()));
View Full Code Here

Examples of devplugin.Date.addDays()

    Date weekday = date;
    for (int i = 0; i < COLUMNS; i++) {
      components[i][0] = new JLabel(new SimpleDateFormat("E").format(weekday
          .getCalendar().getTime()));
      add(components[i][0]);
      weekday = weekday.addDays(1);
    }
    for (int y = 1; y < ROWS; y++) {
      for (int x = 0; x < COLUMNS; x++) {
        ExtendedButton currentButton = new ExtendedButton();
        components[x][y] = currentButton;
View Full Code Here

Examples of devplugin.Date.addDays()

    for (Channel channel : ChannelList.getSubscribedChannels()) {
      if (channel.getDefaultName().equalsIgnoreCase(channelName)) {
        int wrongDays = 0;
        for (int days = 0; days < 3; days++) {
          ChannelDayProgram dayProgram = TvDataBase.getInstance()
              .getDayProgram(currentDate.addDays(days), channel);
          if (dayProgram != null) {
            Iterator<Program> it = dayProgram.getPrograms();
            if (it != null) {
              while (it.hasNext()) {
                Program program = it.next();
View Full Code Here

Examples of devplugin.Date.addDays()

  private Date[] createDateObjects(int days) {
    Date[] result = new Date[days];
    Date today = Date.getCurrentDate();
   
    for (int i=0;i<result.length;i++) {
      result[i]=today.addDays(i);
    }
   
    return result;
  }
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.