Esempio n. 1
0
  private void defautLazyLoading() {
    filterIssueType = "Any";
    filterIssuePriority = "Any";
    filterIssueStatus = "Any";

    issueStateLazyLoading = new IssueStateLazyLoading();

    lazyFilterInLists = new ArrayList<LazyFilterInList>();
    LazyFilterInList filterInList = new LazyFilterInList();
    filterInList.setField("type");
    filterInList.setValues("Task");
    lazyFilterInLists.add(filterInList);
    LazySorter lazySorter = new LazySorter();
    lazySorter.setField("subject");
    lazySorter.setValue(LAZYSORTER_VALUE.ASC);
    issueStateLazyLoading.setSorters(lazySorter);
    issueStateLazyLoading.setFilterInLists(lazyFilterInLists);
    issueStateLazyLoading.setLimit(20);
    issueStateLazyLoading.setStep(10);
    issueStateLazyLoading.setStart(0);
  }
Esempio n. 2
0
  public void loadMoreIssue() {

    int currentLimit = issueStateLazyLoading.getLimit();
    issueStateLazyLoading.setLimit((currentLimit + issueStateLazyLoading.getStep()));
    updateIssueList();
  }