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 void
clear()
Clears the list.BaseTabbedPane.TabUndo
remove(int index)
Removes the specified index.BaseTabbedPane.TabUndo
remove(int index, boolean cleanUp)
Removes the specified index.boolean
remove(Object o)
Removes the specified object.protected void
removeRange(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:
clear
in interfaceCollection<BaseTabbedPane.TabUndo>
- Specified by:
clear
in interfaceList<BaseTabbedPane.TabUndo>
- Overrides:
clear
in classArrayList<BaseTabbedPane.TabUndo>
-
removeRange
protected void removeRange(int fromIndex, int toIndex)
Removes the specified range.- Overrides:
removeRange
in 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:
remove
in interfaceList<BaseTabbedPane.TabUndo>
- Overrides:
remove
in 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:
remove
in interfaceCollection<BaseTabbedPane.TabUndo>
- Specified by:
remove
in interfaceList<BaseTabbedPane.TabUndo>
- Overrides:
remove
in classArrayList<BaseTabbedPane.TabUndo>
- Parameters:
o
- the object to remove- Returns:
- true if removed successfully
-
-