Package net.sourceforge.fullsync.schedule

Examples of net.sourceforge.fullsync.schedule.IntervalSchedule


  }

  @Override
  public void setSchedule(final Schedule sched) {
    if (sched instanceof IntervalSchedule) {
      IntervalSchedule is = (IntervalSchedule) sched;
      int index = 0;
      for (SchedulingIntervalItem item : schedulingIntervals) {
        if (item.unit.equals(is.getIntervalDisplayUnit())) {
          textCount.setText(String.valueOf(is.getInterval() / item.factor));
          break;
        }
        ++index;
      }
      cbUnit.select(index);
View Full Code Here


  @Override
  public Schedule getSchedule() {
    SchedulingIntervalItem item = schedulingIntervals[cbUnit.getSelectionIndex()];
    long interval = Long.parseLong(textCount.getText()) * item.factor;
    return new IntervalSchedule(interval, interval, item.unit);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.fullsync.schedule.IntervalSchedule

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.