Package net.mcreator.util
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 javax.swing.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 javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
ArrayListListModel
public ArrayListListModel()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@Nonnull public <Type> Type[] toArray(@Nonnull Type[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void 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
public int 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)
-