public final class VeryComplexListDataEvent extends ComplexListDataEvent
This event class is used in the case of calls to TabDataModel.setTabs(),
where one array of TabData objects is replaced with a different array of
TabData objects, which may contain additions, removals, deletions or moves.
The heavy lifting is done by ArrayDiff
, which provides lists of
the affected indices for those things that are added/removed/changed/
deleted.
Note that this class should eventually be merged with ComplexListDataEvent, along with some normalization of how things are done - it was written for expedience, not beauty.
ArrayDiff
,
Serialized FormITEMS_ADDED, ITEMS_REMOVED
CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED
source
Constructor and Description |
---|
VeryComplexListDataEvent(Object source,
TabData[] old,
TabData[] nue)
Creates a new instance of VeryComplexListDataEvent
|
Modifier and Type | Method and Description |
---|---|
ArrayDiff |
getDiff()
Returns an ArrayDiff object if the two arrays this event was created with
are not identical
|
String |
toString() |
getAffectedItems, getIndices, isTextChanged, isUserObjectChanged, setAffectedItems
getIndex0, getIndex1, getType
getSource
public ArrayDiff getDiff()
public String toString()
toString
in class ComplexListDataEvent