Package adams.gui.core
Class BaseTabbedPane.TabUndoList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<BaseTabbedPane.TabUndo>
-
- adams.gui.core.BaseTabbedPane.TabUndoList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<BaseTabbedPane.TabUndo>,Collection<BaseTabbedPane.TabUndo>,List<BaseTabbedPane.TabUndo>,RandomAccess
- Enclosing class:
- BaseTabbedPane
public static class BaseTabbedPane.TabUndoList extends ArrayList<BaseTabbedPane.TabUndo>
For storing the tab undo containers. Clearing or removing cleans up the tabs if the implementCleanUpHandler.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description TabUndoList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the list.BaseTabbedPane.TabUndoremove(int index)Removes the specified index.BaseTabbedPane.TabUndoremove(int index, boolean cleanUp)Removes the specified index.booleanremove(Object o)Removes the specified object.protected voidremoveRange(int fromIndex, int toIndex)Removes the specified range.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
clear
public void clear()
Clears the list.- Specified by:
clearin interfaceCollection<BaseTabbedPane.TabUndo>- Specified by:
clearin interfaceList<BaseTabbedPane.TabUndo>- Overrides:
clearin classArrayList<BaseTabbedPane.TabUndo>
-
removeRange
protected void removeRange(int fromIndex, int toIndex)Removes the specified range.- Overrides:
removeRangein classArrayList<BaseTabbedPane.TabUndo>- Parameters:
fromIndex- the start (incl)toIndex- the end (excl)
-
remove
public BaseTabbedPane.TabUndo remove(int index)
Removes the specified index.- Specified by:
removein interfaceList<BaseTabbedPane.TabUndo>- Overrides:
removein classArrayList<BaseTabbedPane.TabUndo>- Parameters:
index- the index to remove- Returns:
- the removed object
-
remove
public BaseTabbedPane.TabUndo remove(int index, boolean cleanUp)
Removes the specified index.- Parameters:
index- the index to removecleanUp- whether to clean up the component- Returns:
- the removed object
-
remove
public boolean remove(Object o)
Removes the specified object.- Specified by:
removein interfaceCollection<BaseTabbedPane.TabUndo>- Specified by:
removein interfaceList<BaseTabbedPane.TabUndo>- Overrides:
removein classArrayList<BaseTabbedPane.TabUndo>- Parameters:
o- the object to remove- Returns:
- true if removed successfully
-
-