Produced by Araxis Merge on 6/9/2017 3:51:30 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:51:30 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\java\gov\va\nvap\web\util | Paginator.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 65 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |||||
| 2 | * To chan ge this te mplate, ch oose Tools | Templat es | |||||
| 3 | * and ope n the temp late in th e editor. | |||||
| 4 | */ | |||||
| 5 | ||||||
| 6 | package go v.va.nvap. web.util; | |||||
| 7 | ||||||
| 8 | import jav a.io.Seria lizable; | |||||
| 9 | ||||||
| 10 | import jav ax.servlet .http.Http ServletReq uest; | |||||
| 11 | ||||||
| 12 | /** | |||||
| 13 | * Paginat or to navi gate throu gh records in the re ports. | |||||
| 14 | * | |||||
| 15 | * @author David Vaz quez | |||||
| 16 | */ | |||||
| 17 | public cla ss Paginat or impleme nts Serial izable { | |||||
| 18 | ||||||
| 19 | pr ivate int currentPag e = 0; | |||||
| 20 | pr ivate fina l int reco rdsPerPage ; | |||||
| 21 | pr ivate bool ean nextDi sabled = f alse; | |||||
| 22 | ||||||
| 23 | pu blic Pagin ator(final int recor dsPerPage) { | |||||
| 24 | this .recordsPe rPage = re cordsPerPa ge; | |||||
| 25 | } | |||||
| 26 | ||||||
| 27 | pu blic int g etCurrentP age() { | |||||
| 28 | retu rn this.cu rrentPage; | |||||
| 29 | } | |||||
| 30 | ||||||
| 31 | pu blic int g etRecordsP erPage() { | |||||
| 32 | retu rn this.re cordsPerPa ge; | |||||
| 33 | } | |||||
| 34 | ||||||
| 35 | pu blic void next(final HttpServl etRequest request) { | |||||
| 36 | this .currentPa ge = Integ er | |||||
| 37 | .parseIn t(request. getParamet er("curren tPage")); | |||||
| 38 | ++th is.current Page; | |||||
| 39 | } | |||||
| 40 | ||||||
| 41 | pu blic void previous(f inal HttpS ervletRequ est reques t) { | |||||
| 42 | this .currentPa ge = Integ er | |||||
| 43 | .parseIn t(request. getParamet er("curren tPage")); | |||||
| 44 | --th is.current Page; | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | pu blic void reset() { | |||||
| 48 | this .currentPa ge = 0; | |||||
| 49 | this .nextDisab led = fals e; | |||||
| 50 | } | |||||
| 51 | ||||||
| 52 | /* * | |||||
| 53 | * @return t he nextDis abled | |||||
| 54 | * / | |||||
| 55 | pu blic boole an isNextD isabled() { | |||||
| 56 | retu rn nextDis abled; | |||||
| 57 | } | |||||
| 58 | ||||||
| 59 | /* * | |||||
| 60 | * @param ne xtDisabled the nextD isabled to set | |||||
| 61 | * / | |||||
| 62 | pu blic void setNextDis abled(bool ean nextDi sabled) { | |||||
| 63 | this .nextDisab led = next Disabled; | |||||
| 64 | } | |||||
| 65 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.