if (null == color) {
throw new IllegalArgumentException("Invalid 'color': null.");
}
- else if ((color < 0) || (color > 0xFFFFFF)) {
+ else if ((color.intValue() < 0) || (color.intValue() > 0xFFFFFF)) {
throw new IllegalArgumentException(String.format("Invalid 'color': %s.", color));
}
//
this.selectedPage = 1;
return;
}
- else if ((null != selectedPage) && ((selectedPage < 1) || (selectedPage > (int)Math.ceil((float)this.getRowCount() / (float)this.getRowsPerPage())))) {
+ else if ((null != selectedPage) && ((selectedPage.intValue() < 1) || (selectedPage.intValue() > (int)Math.ceil((float)this.getRowCount() / (float)this.getRowsPerPage())))) {
throw new IllegalArgumentException(String.format("Invalid 'selectedPage': %s: out of range.", selectedPage));
}
//
else if (0 == this.getRowCount()) {
this.setSelectedPage(null);
}
- else if (selectedPage < 1) {
+ else if (selectedPage.intValue() < 1) {
this.setSelectedPage(1);
}
- else if (selectedPage > (int)Math.ceil((float)this.getRowCount() / (float)this.getRowsPerPage())) {
+ else if (selectedPage.intValue() > (int)Math.ceil((float)this.getRowCount() / (float)this.getRowsPerPage())) {
this.setSelectedPage((int)Math.ceil((float)this.getRowCount() / (float)this.getRowsPerPage()));
}
}
int lastRow = this.getRowCount() - 1;
Integer selectedPage = this.getSelectedPage();
if (null != selectedPage) {
- firstRow = (selectedPage - 1) * this.getRowsPerPage();
- lastRow = Math.min((selectedPage * this.getRowsPerPage()) - 1, lastRow);
+ firstRow = (selectedPage.intValue() - 1) * this.getRowsPerPage();
+ lastRow = Math.min((selectedPage.intValue() * this.getRowsPerPage()) - 1, lastRow);
}
LinkedList<LinkedHashMap<String, String>> tmpRowSubset = new LinkedList<LinkedHashMap<String, String>>();
for (int r = firstRow; r < (lastRow + 1); r++) {
}
protected void setMaximumLength(Integer maximumLength, boolean refreshMode) {
- if ((null != maximumLength) && (0 > maximumLength)) {
+ if ((null != maximumLength) && (0 > maximumLength.intValue())) {
throw new IllegalArgumentException("Invalid 'maximumLength': negative number.");
}
//