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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) getElementAt
(int index) int
getSize()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) boolean
moveDown
(int index) boolean
moveUp
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) protected void
switchElements
(int index0, int index1) Object[]
toArray()
<Type> Type[]
toArray
(Type[] a) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAt
in interfaceListModel<T>
-
switchElements
protected void switchElements(int index0, int index1) -
moveUp
public boolean moveUp(int index) -
moveDown
public boolean moveDown(int index)
-