Package org.luwrain.controls
Class ListUtils.DefaultEditableModel<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.luwrain.controls.ListUtils.DefaultEditableModel<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess,EditableListArea.Model<E>,ListArea.Model<E>
- Enclosing class:
- ListUtils
public static class ListUtils.DefaultEditableModel<E>
extends ArrayList<E>
implements EditableListArea.Model<E>
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEditableModel(Class<E> itemClass) DefaultEditableModel(Class<E> itemClass, E[] items) DefaultEditableModel(Class<E> itemClass, List<E> items) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToModel(int pos, Supplier<Object> supplier) protected EgetItem(int index) intObject[]getItems()voidrefresh()booleanremoveFromModel(int fromIndex, int toIndex) voidMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Field Details
-
itemClass
-
-
Constructor Details
-
DefaultEditableModel
-
DefaultEditableModel
-
DefaultEditableModel
-
-
Method Details
-
setItems
-
getItems
-
addToModel
- Specified by:
addToModelin interfaceEditableListArea.Model<E>
-
removeFromModel
public boolean removeFromModel(int fromIndex, int toIndex) - Specified by:
removeFromModelin interfaceEditableListArea.Model<E>
-
getItemCount
public int getItemCount()- Specified by:
getItemCountin interfaceListArea.Model<E>
-
getItem
- Specified by:
getItemin interfaceListArea.Model<E>
-
refresh
public void refresh()- Specified by:
refreshin interfaceListArea.Model<E>
-
adjust
-