de.swm.gwt.client.paging.BasePagingLoadResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swm-gwt-client Show documentation
Show all versions of swm-gwt-client Show documentation
Plain GWT Swm erweiterungen, auch zur benutzung in mobilen Geraeten
package de.swm.gwt.client.paging;
import java.util.List;
import de.swm.gwt.client.interfaces.IModelData;
import de.swm.gwt.client.interfaces.IPagingLoadResult;
/**
* Base-Paging load implementierung..
*
* @author wiese.daniel
* copyright (C) 2011, SWM Services GmbH
*
* @param
*/
public class BasePagingLoadResult implements IPagingLoadResult {
private static final long serialVersionUID = 1L;
private int offset;
private int totalLength;
private List payload;
/**
* GWT Contructor.
*/
public BasePagingLoadResult() {
}
/**
*
* Default constructor.
*
* @param payload
* der payload.
*/
public BasePagingLoadResult(List payload) {
this.payload = payload;
}
@Override
public int getOffset() {
return offset;
}
@Override
public int getTotalLength() {
return totalLength;
}
@Override
public List getData() {
return payload;
}
/**
* offset the offset to set.
*
* @param offset
* the offset to set
*/
public void setOffset(int offset) {
this.offset = offset;
}
/**
* totalLength the totalLength to set.
*
* @param totalLength
* the totalLength to set
*/
public void setTotalLength(int totalLength) {
this.totalLength = totalLength;
}
}