/**
  * @return null if the selected schedule does not support repeat-in-seconds, otherwise return the
  *     number of seconds between schedule execution.
  * @throws RuntimeException if the temporal value (tv) is invalid. This condition occurs as a
  *     result of programmer error.
  */
 public Long getRepeatInSecs() throws RuntimeException {
   switch (temporalState) {
     case WEEKLY:
       // fall through
     case MONTHLY:
       // fall through
     case YEARLY:
       return null;
     case SECONDS:
       return Long.parseLong(secondlyEditor.getValue());
     case MINUTES:
       return TimeUtil.minutesToSecs(Long.parseLong(minutelyEditor.getValue()));
     case HOURS:
       return TimeUtil.hoursToSecs(Long.parseLong(hourlyEditor.getValue()));
     case DAILY:
       return TimeUtil.daysToSecs(Long.parseLong(dailyEditor.getRepeatValue()));
     default:
       throw new RuntimeException(
           Messages.getString(
               "schedule.invalidTemporalValueInGetRepeatInSecs", temporalState.toString()));
   }
 }