All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sencha.gxt.data.shared.loader.PagingLoadConfigBean Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
/**
 * Ext GWT 3.0.0-rc2 - Ext for GWT
 * Copyright(c) 2007-2012, Sencha, Inc.
 * [email protected]
 *
 * http://sencha.com/license
 */
package com.sencha.gxt.data.shared.loader;

/**
 * Default implementation of the PagingLoadConfig interface.
 */
public class PagingLoadConfigBean extends ListLoadConfigBean implements PagingLoadConfig {

  private int limit;
  private int offset;

  /**
   * Creates a new paging load config.
   */
  public PagingLoadConfigBean() {
    this(0, 50);
  }

  /**
   * Creates a new paging load config.
   * 
   * @param offset the offset
   * @param limit the limit
   */
  public PagingLoadConfigBean(int offset, int limit) {
    setOffset(offset);
    setLimit(limit);
  }

  public int getLimit() {
    return limit;
  }

  public int getOffset() {
    return offset;
  }

  public void setLimit(int limit) {
    this.limit = limit;
  }

  public void setOffset(int offset) {
    this.offset = offset;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy