Package gov.nih.mipav.model.provenance
Class ProvenanceHolder
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<ProvenanceEntry>
-
- gov.nih.mipav.model.provenance.ProvenanceHolder
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<ProvenanceEntry>,java.util.Collection<ProvenanceEntry>,java.util.List<ProvenanceEntry>,java.util.RandomAccess
public class ProvenanceHolder extends java.util.Vector<ProvenanceEntry>
Class that stores matrices (owned by ModelImage) with accessor functions to the matrix map/adding and changing matrices.- Author:
- linkb
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.event.EventListenerListlistenerListA list of the ChangeListeners which are interested in the ChangeEvent.
-
Constructor Summary
Constructors Constructor Description ProvenanceHolder()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(ProvenanceEntry entry)Catches the Vector's addElement for listener notifactionvoidaddProvenanceChangeListener(ProvenanceChangeListener l)Adds a listener (JDialogDataProvenance) to receive notificationsjava.lang.Objectclone()Copies the object.private voidfireProvenanceStateChanged(ProvenanceEntry entry)Notify the listeners (dialogs) that a provenance entry has been stored-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
Copies the object.- Overrides:
clonein classjava.util.Vector<ProvenanceEntry>- Returns:
- Object A copy of the file info.
-
addElement
public void addElement(ProvenanceEntry entry)
Catches the Vector's addElement for listener notifaction- Overrides:
addElementin classjava.util.Vector<ProvenanceEntry>
-
fireProvenanceStateChanged
private void fireProvenanceStateChanged(ProvenanceEntry entry)
Notify the listeners (dialogs) that a provenance entry has been stored- Parameters:
entry- the provenance entry
-
addProvenanceChangeListener
public void addProvenanceChangeListener(ProvenanceChangeListener l)
Adds a listener (JDialogDataProvenance) to receive notifications- Parameters:
l-
-
-