Examples of Paging


Examples of com.google.api.adwords.v201309.cm.Paging

      alertQuery.setTriggerTimeSpec(TriggerTimeSpec.ALL_TIME);

      // Create selector.
      AlertSelector selector = new AlertSelector();
      selector.setQuery(alertQuery);
      selector.setPaging(new Paging(0, 100));

      // Get all alerts.
      AlertPage page = alertService.get(selector);

      // Display alerts.
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.Paging

      selector.setIdeaType(IdeaType.PLACEMENT);
      selector.setRequestedAttributeTypes(new AttributeType[] {AttributeType.CRITERION,
          AttributeType.PLACEMENT_TYPE});

      // Set selector paging (required for targeting idea service).
      Paging paging = new Paging();
      paging.setStartIndex(0);
      paging.setNumberResults(10);
      selector.setPaging(paging);

      // Create related to URL search parameter.
      RelatedToUrlSearchParameter relatedToUrlSearchParameter = new RelatedToUrlSearchParameter();
      relatedToUrlSearchParameter.setUrls(new String[] {url});
View Full Code Here

Examples of com.google.code.stackexchange.schema.Paging

   * @return the paging
   */
  protected Paging getPaging() {
      assertNotNullOrEmpty(String.format(RESOURCE_MISSING_MESSAGE, "Test Page No."), TestConstants.STACK_OVERFLOW_TEST_PAGE_NO);
      assertNotNullOrEmpty(String.format(RESOURCE_MISSING_MESSAGE, "Test Page Size"), TestConstants.STACK_OVERFLOW_TEST_PAGE_SIZE);
      return new Paging(Integer.parseInt(TestConstants.STACK_OVERFLOW_TEST_PAGE_NO), Integer.parseInt(TestConstants.STACK_OVERFLOW_TEST_PAGE_SIZE));     
  }
View Full Code Here

Examples of com.opengamma.util.paging.Paging

            criteria,
            pagingRequest.getFirstItem(),
            pagingRequest.getPagingSize());
        }
        //
        Paging paging;
        if (pagingRequest.equals(PagingRequest.ALL)) {
          paging = Paging.of(pagingRequest, results);
        } else {
          criteria.setProjection(Projections.rowCount());
          final Long totalCount = (Long) getHibernateTemplate().findByCriteria(criteria).get(0);
View Full Code Here

Examples of jcurses.util.Paging

    return found;
  }
 
 
  private Paging getPaging() {
    return new Paging(getVisibleSize(), getItemsCount());
  }
View Full Code Here

Examples of jcurses.util.Paging

 
  //Paging
 
 
  private Paging getPaging() {
    return new Paging(getVisibleHeight(), getTextHeight());
  }
View Full Code Here

Examples of org.sonar.api.utils.Paging

  private GroupWithPermissionQueryResult toGroupQueryResult(List<GroupWithPermissionDto> dtos, PermissionQuery query) {
    addAnyoneGroup(dtos, query);
    List<GroupWithPermissionDto> filteredDtos = filterMembership(dtos, query);

    Paging paging = Paging.create(query.pageSize(), query.pageIndex(), filteredDtos.size());
    List<GroupWithPermission> pagedGroups = pagedGroups(filteredDtos, paging);
    return new GroupWithPermissionQueryResult(pagedGroups, paging.hasNextPage());
  }
View Full Code Here

Examples of org.sonar.wsclient.base.Paging

    return result;
  }

  private void parsePaging(DefaultIssues result, Map jsonRoot) {
    Map paging = (Map) jsonRoot.get("paging");
    result.setPaging(new Paging(paging));
    result.setMaxResultsReached(JsonUtils.getBoolean(jsonRoot, "maxResultsReached"));
  }
View Full Code Here

Examples of org.zkoss.zul.Paging

    final Set avail = new LinkedHashSet(32);
    avail.addAll(_listbox.getHeads());
    final Listfoot listfoot = _listbox.getListfoot();
    if (listfoot != null) avail.add(listfoot);
    final Paging paging = _listbox.getPagingChild();
    if (paging != null) avail.add(paging);
    final Frozen frozen = _listbox.getFrozen();
    if (frozen != null) avail.add(frozen);

    int pgsz = limit;
View Full Code Here

Examples of org.zkoss.zul.Paging

    // store the searchObject for reReading
    customerCtrl.setSearchObj(so);

    Listbox listBox = customerCtrl.listBoxCustomer;
    Paging paging = customerCtrl.pagingCustomerList;
    int ps = customerCtrl.pagingCustomerList.getPageSize();

    // set the model to the listbox with the initial resultset get by the
    // DAO method.
    ((PagedListWrapper<Customer>) listBox.getModel()).init(so, listBox, paging);

    labelCustomerSearchResult.setValue(Labels.getLabel("labelCustomerSearchResult.value") + " " + String.valueOf(paging.getTotalSize()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.