Package org.luwrain.controls
Class ListUtils.ArrayModel<E>
- java.lang.Object
-
- org.luwrain.controls.ListUtils.ArrayModel<E>
-
- All Implemented Interfaces:
ListArea.Model<E>
- Enclosing class:
- ListUtils
public static class ListUtils.ArrayModel<E> extends Object implements ListArea.Model<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ListUtils.ArrayModel.Source<E>
-
Field Summary
Fields Modifier and Type Field Description protected ListUtils.ArrayModel.Source<E>
source
-
Constructor Summary
Constructors Constructor Description ArrayModel(ListUtils.ArrayModel.Source<E> source)
-
-
-
Field Detail
-
source
protected final ListUtils.ArrayModel.Source<E> source
-
-
Constructor Detail
-
ArrayModel
public ArrayModel(ListUtils.ArrayModel.Source<E> source)
-
-
Method Detail
-
getItemCount
public int getItemCount()
- Specified by:
getItemCount
in interfaceListArea.Model<E>
-
getItem
public E getItem(int index)
- Specified by:
getItem
in interfaceListArea.Model<E>
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceListArea.Model<E>
-
-