Package net.sf.jasperreports.engine.base
Class VirtualizableElementList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<JRPrintElement>
-
- net.sf.jasperreports.engine.base.VirtualizableElementList
-
- All Implemented Interfaces:
Serializable
,Iterable<JRPrintElement>
,Collection<JRPrintElement>
,List<JRPrintElement>
public class VirtualizableElementList extends AbstractList<JRPrintElement> implements Serializable
List implementation that can virtualize blocks of elements.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementStore
store
protected JRVirtualizationContext
virtualizationContext
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description VirtualizableElementList(JRVirtualizationContext virtualizationContext, ElementStore store)
VirtualizableElementList(JRVirtualizationContext virtualizationContext, JRVirtualPrintPage page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, JRPrintElement element)
boolean
add(JRPrintElement element)
void
clear()
int
deepSize()
void
dispose()
JRPrintElement
get(int index)
ElementStore
getElementStore()
JRVirtualizationContext
getVirtualizationContext()
JRPrintElement
remove(int index)
JRPrintElement
set(int index, JRPrintElement element)
void
set(List<JRPrintElement> elements)
int
size()
void
transferElements(Consumer<JRPrintElement> consumer)
ElementStore
transferStore(JRVirtualizationContext context, JRVirtualPrintPage page)
void
updatePage(JRVirtualPrintPage page)
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
virtualizationContext
protected final JRVirtualizationContext virtualizationContext
-
store
protected ElementStore store
-
-
Constructor Detail
-
VirtualizableElementList
public VirtualizableElementList(JRVirtualizationContext virtualizationContext, JRVirtualPrintPage page)
-
VirtualizableElementList
public VirtualizableElementList(JRVirtualizationContext virtualizationContext, ElementStore store)
-
-
Method Detail
-
getElementStore
public ElementStore getElementStore()
-
set
public void set(List<JRPrintElement> elements)
-
get
public JRPrintElement get(int index)
- Specified by:
get
in interfaceList<JRPrintElement>
- Specified by:
get
in classAbstractList<JRPrintElement>
-
size
public int size()
- Specified by:
size
in interfaceCollection<JRPrintElement>
- Specified by:
size
in interfaceList<JRPrintElement>
- Specified by:
size
in classAbstractCollection<JRPrintElement>
-
deepSize
public int deepSize()
-
set
public JRPrintElement set(int index, JRPrintElement element)
- Specified by:
set
in interfaceList<JRPrintElement>
- Overrides:
set
in classAbstractList<JRPrintElement>
-
add
public boolean add(JRPrintElement element)
- Specified by:
add
in interfaceCollection<JRPrintElement>
- Specified by:
add
in interfaceList<JRPrintElement>
- Overrides:
add
in classAbstractList<JRPrintElement>
-
add
public void add(int index, JRPrintElement element)
- Specified by:
add
in interfaceList<JRPrintElement>
- Overrides:
add
in classAbstractList<JRPrintElement>
-
remove
public JRPrintElement remove(int index)
- Specified by:
remove
in interfaceList<JRPrintElement>
- Overrides:
remove
in classAbstractList<JRPrintElement>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<JRPrintElement>
- Specified by:
clear
in interfaceList<JRPrintElement>
- Overrides:
clear
in classAbstractList<JRPrintElement>
-
dispose
public void dispose()
-
getVirtualizationContext
public JRVirtualizationContext getVirtualizationContext()
-
updatePage
public void updatePage(JRVirtualPrintPage page)
-
transferStore
public ElementStore transferStore(JRVirtualizationContext context, JRVirtualPrintPage page)
-
transferElements
public void transferElements(Consumer<JRPrintElement> consumer)
-
-