EE
- the external type of element in the ListView
@Internal public abstract class StateListView<N,EE> extends ListView<EE> implements StateDataView<N>
StateListView
is a ListView
which is implemented using state backends.Modifier and Type | Class and Description |
---|---|
static class |
StateListView.KeyedStateListView<N,T>
StateListView.KeyedStateListView is an default implementation of StateListView whose
underlying representation is a keyed state. |
static class |
StateListView.NamespacedStateListView<N,T>
StateListView.NamespacedStateListView is an StateListView whose underlying representation
is a keyed and namespaced state. |
elementType
Constructor and Description |
---|
StateListView() |
Modifier and Type | Method and Description |
---|---|
void |
add(EE value)
Adds the given value to the list.
|
void |
addAll(List<EE> list)
Adds all of the elements of the specified list to this list view.
|
void |
clear()
Removes all of the elements from this list view.
|
Iterable<EE> |
get()
Returns an iterable of the list view.
|
List<EE> |
getList()
Returns the entire view's content as an instance of
List . |
protected abstract ListState<EE> |
getListState() |
boolean |
remove(EE value)
Removes the given value from the list.
|
void |
setList(List<EE> list)
Replaces the entire view's content with the content of the given
List . |
equals, hashCode, newListViewDataType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setCurrentNamespace
public List<EE> getList()
ListView
List
.public void setList(List<EE> list)
ListView
List
.public Iterable<EE> get() throws Exception
ListView
public void add(EE value) throws Exception
ListView
public void addAll(List<EE> list) throws Exception
ListView
public boolean remove(EE value) throws Exception
ListView
public void clear()
ListView
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.