private List<Schedule> getFilteredSchedulesList(List<Schedule> scheduleList) {
   List<Schedule> filteredList = null;
   String filterVal = schedulerToolbar.getFilterValue();
   if (!SchedulerToolbar.ALL_GROUPS_FILTER.equals(filterVal)) {
     filteredList = new ArrayList<Schedule>();
     for (int ii = 0; ii < scheduleList.size(); ++ii) {
       Schedule s = scheduleList.get(ii);
       if (s.getJobGroup().equals(filterVal)) {
         filteredList.add(s);
       }
     }
   } else {
     filteredList = scheduleList;
   }
   return filteredList;
 }
  private void initFilterList() {
    String currentFilter = schedulerToolbar.getFilterValue();
    currentFilter = (null == currentFilter) ? SchedulerToolbar.ALL_GROUPS_FILTER : currentFilter;

    Set<String> groupNames = new HashSet<String>();
    List<Schedule> scheduleList = schedulesModel.getScheduleList();
    for (int ii = 0; ii < scheduleList.size(); ++ii) {
      Schedule s = scheduleList.get(ii);
      String groupName = s.getJobGroup();
      if (!groupNames.contains(groupName)) {
        groupNames.add(groupName);
      }
    }
    schedulerToolbar.clearFilters();

    schedulerToolbar.addFilterItem(SchedulerToolbar.ALL_GROUPS_FILTER);
    for (String name : groupNames) {
      schedulerToolbar.addFilterItem(name);
    }
    schedulerToolbar.setFilterValue(currentFilter);
  }