Class ArrayListListModel<T>
java.lang.Object
javax.swing.AbstractListModel<T>
net.mcreator.util.ArrayListListModel<T>
- All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>, ListModel<T>
- Direct Known Subclasses:
Canvas, PaletteListPanel.PaletteStorage
- See Also:
-
Field Summary
Fields inherited from class AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) getElementAt(int index) intgetSize()intbooleanisEmpty()iterator()intlistIterator(int index) booleanmoveDown(int index) booleanmoveUp(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) protected voidswitchElements(int index0, int index1) Object[]toArray()<Type> Type[]toArray(Type[] a) Methods inherited from class AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
ArrayListListModel
public ArrayListListModel()
-
-
Method Details
-
size
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
getSize
-
getElementAt
- Specified by:
getElementAtin interfaceListModel<T>
-
switchElements
protected void switchElements(int index0, int index1) -
moveUp
public boolean moveUp(int index) -
moveDown
public boolean moveDown(int index)
-