コード例 #1
0
  private void updateDefaultOptions() {
    currentSearchFilter = new ECSearchOption(null);
    currentVillageFilter = defaultOptionProvider.villageFilter();
    currentServiceModeOption = defaultOptionProvider.serviceMode();
    currentSortOption = defaultOptionProvider.sortOption();

    appliedSortView.setText(currentSortOption.name());
    appliedVillageFilterView.setText(currentVillageFilter.name());
    serviceModeView.setText(currentServiceModeOption.name());
    titleLabelView.setText(defaultOptionProvider.nameInShortFormForTitle());
  }
コード例 #2
0
 protected void onSortSelection(SortOption sortBy) {
   currentSortOption = sortBy;
   appliedSortView.setText(sortBy.name());
   clientsAdapter.refreshList(
       currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption);
 }