public class ListDataProvider<T> implements DataProvider<T>
A List that implements interface DataProvider
interface DataProvider
Constructor and Description |
---|
ListDataProvider()
Creates an empty
class ListDataProvider |
ListDataProvider(java.util.Collection<? extends T> collection)
Creates a
class ListDataProvider with the data from given collection |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T element) |
void |
add(int index,
T element) |
boolean |
addAll(java.util.Collection<? extends T> elements) |
boolean |
addAll(int index,
java.util.Collection<? extends T> elements) |
void |
clear() |
void |
close() |
int |
getDataSize() |
PagerNotifier<T> |
getPagerNotifier()
The
interface PagerNotifier . Set it from Pager.getPagerNotifier |
boolean |
remove(java.lang.Object element) |
boolean |
removeAll(java.util.Collection<? extends java.lang.Object> elements) |
T |
removeAt(int index) |
void |
removeRange(int fromIndex,
int toIndex) |
T |
set(int index,
T element) |
void |
setPagerNotifier(PagerNotifier<T> p)
The
interface PagerNotifier . Set it from Pager.getPagerNotifier |
close, get, getDataSize
public ListDataProvider()
Creates an empty class ListDataProvider
class ListDataProvider
public ListDataProvider(java.util.Collection<? extends T> collection)
Creates a class ListDataProvider
with the data from given collection
class ListDataProvider
public PagerNotifier<T> getPagerNotifier()
The interface PagerNotifier
. Set it from Pager.getPagerNotifier
interface PagerNotifier
,
Pager.getPagerNotifier
public void setPagerNotifier(PagerNotifier<T> p)
The interface PagerNotifier
. Set it from Pager.getPagerNotifier
interface PagerNotifier
,
Pager.getPagerNotifier
public int getDataSize()
public boolean add(T element)
public void add(int index, T element)
public boolean addAll(java.util.Collection<? extends T> elements)
public boolean addAll(int index, java.util.Collection<? extends T> elements)
public boolean remove(java.lang.Object element)
public boolean removeAll(java.util.Collection<? extends java.lang.Object> elements)
public T removeAt(int index)
public void removeRange(int fromIndex, int toIndex)
public void clear()
public T set(int index, T element)
public void close()