public class PageSizeSelectorOptionDto extends Object implements Serializable, Comparable<PageSizeSelectorOptionDto>
An option of page size selector that can be processed by a
JAXBContext and the Jackson JSON processor.
| Constructor and Description |
|---|
PageSizeSelectorOptionDto()
Default constructor.
|
PageSizeSelectorOptionDto(int value,
String displayedValue,
boolean selected)
Creates a
PageSizeSelectorOptionDto with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PageSizeSelectorOptionDto o)
Compares the values of the options.
|
boolean |
equals(Object obj) |
String |
getDisplayedValue()
Returns the displayed value (normally the page size plus one).
|
int |
getValue()
Returns the value (the page size) of this option.
|
int |
hashCode() |
boolean |
isSelected()
Returns
true if the option is selected, otherwise false. |
void |
setDisplayedValue(String displayedValue)
Sets the displayed value of this option.
|
void |
setSelected(boolean selected)
Sets whether this option is selected or not.
|
void |
setValue(int value)
Sets the value of this option.
|
String |
toString() |
public PageSizeSelectorOptionDto()
public PageSizeSelectorOptionDto(int value,
String displayedValue,
boolean selected)
PageSizeSelectorOptionDto with the given parameters.value - the valuedisplayedValue - the display valueselected - true if the option is selected, otherwise
falsepublic int compareTo(PageSizeSelectorOptionDto o)
compareTo in interface Comparable<PageSizeSelectorOptionDto>public int getValue()
public void setValue(int value)
public String getDisplayedValue()
public void setDisplayedValue(String displayedValue)
public boolean isSelected()
true if the option is selected, otherwise false.public void setSelected(boolean selected)
Copyright © 2016 bremersee.org. All rights reserved.