Package ghidra.framework.model
Class DomainObjectChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- ghidra.framework.model.DomainObjectChangedEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<DomainObjectChangeRecord>
public class DomainObjectChangedEvent extends java.util.EventObject implements java.lang.Iterable<DomainObjectChangeRecord>
An event indicating a DomainObject has changed. This event is actually a list of DomainObjectChangeRecords. NOTE: This object is TRANSIENT - it is only valid during the life of calls to all the DomainObjectChangeListeners. Listeners who need to retain any of this event information past the listener call should save the DomainObjectChangeRecords, which will remain valid always.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DomainObjectChangedEvent(DomainObject src, java.util.List<DomainObjectChangeRecord> subEvents)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsEvent(int eventType)
DomainObjectChangeRecord
getChangeRecord(int i)
Get the specified change record within this event.java.util.Iterator<DomainObjectChangeRecord>
iterator()
Returns iterator over all sub-eventsint
numRecords()
Return the number of change records contained within this event.
-
-
-
Constructor Detail
-
DomainObjectChangedEvent
public DomainObjectChangedEvent(DomainObject src, java.util.List<DomainObjectChangeRecord> subEvents)
Constructor- Parameters:
src
- the object which has changedsubEvents
- a List of DomainObjectChangeRecords;
-
-
Method Detail
-
numRecords
public int numRecords()
Return the number of change records contained within this event.
-
containsEvent
public boolean containsEvent(int eventType)
-
getChangeRecord
public DomainObjectChangeRecord getChangeRecord(int i)
Get the specified change record within this event.- Parameters:
i
- change record number- Returns:
- change record
-
iterator
public java.util.Iterator<DomainObjectChangeRecord> iterator()
Returns iterator over all sub-events- Specified by:
iterator
in interfacejava.lang.Iterable<DomainObjectChangeRecord>
-
-