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. |
protected ReportProcessor |
getPageProcess() |
protected void |
set(int index,
org.pentaho.reporting.engine.classic.core.layout.output.DefaultPageStateList.InternalStorageState state) |
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
.protected ReportProcessor getPageProcess()
public int size()
size
in interface PageStateList
public void add(PageState pageState)
add
in interface PageStateList
pageState
- the report state.protected void set(int index, org.pentaho.reporting.engine.classic.core.layout.output.DefaultPageStateList.InternalStorageState state)
public void clear()
clear
in interface PageStateList
public PageState get(int index)
index
in this list.get
in interface PageStateList
index
- the index.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.