-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
151 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
tableview/src/main/java/com/ellen/tableview/supertableview/PagingMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.ellen.tableview.supertableview; | ||
|
||
public class PagingMode { | ||
|
||
/** | ||
* 分页的方向 | ||
*/ | ||
private boolean isVer; | ||
/** | ||
* 第一次加载的数据个数 | ||
*/ | ||
private int firstSize; | ||
/** | ||
* 每次分页加载的个数 | ||
*/ | ||
private int addSize; | ||
|
||
private int loadBeforeSize = 1; | ||
|
||
public int getLoadBeforeSize() { | ||
return loadBeforeSize; | ||
} | ||
|
||
public void setLoadBeforeSize(int loadBeforeSize) { | ||
this.loadBeforeSize = loadBeforeSize; | ||
} | ||
|
||
public PagingMode(boolean isVer, int firstSize, int addSize, int loadBeforeSize) { | ||
this.isVer = isVer; | ||
this.firstSize = firstSize; | ||
this.addSize = addSize; | ||
this.loadBeforeSize = loadBeforeSize; | ||
} | ||
|
||
public boolean isVer() { | ||
return isVer; | ||
} | ||
|
||
public void setVer(boolean ver) { | ||
isVer = ver; | ||
} | ||
|
||
public int getFirstSize() { | ||
return firstSize; | ||
} | ||
|
||
public void setFirstSize(int firstSize) { | ||
this.firstSize = firstSize; | ||
} | ||
|
||
public int getAddSize() { | ||
return addSize; | ||
} | ||
|
||
public void setAddSize(int addSize) { | ||
this.addSize = addSize; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters