public class DefaultPageStateList extends Object implements PageStateList
Constructor and Description |
---|
DefaultPageStateList(ReportProcessor proc)
Creates a new reportstatelist.
|
Modifier and Type | Method and Description |
---|---|
void |
add(PageState pageState)
Adds this report state to the end of the list.
|
void |
clear()
Removes all elements in the list.
|
PageState |
get(int index)
Retrieves the element on position
index in this list. |
int |
size()
Returns the number of elements in this list.
|
public DefaultPageStateList(ReportProcessor proc)
proc
- the reportprocessor used to restore lost states (null not permitted).NullPointerException
- if the report processor is null
.public int size()
size
in interface PageStateList
public void add(PageState pageState)
add
in interface PageStateList
pageState
- the report state.public void clear()
clear
in interface PageStateList
public PageState get(int index)
index
in this list.get
in interface PageStateList
index
- the index.