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_REMOVEDCONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVEDsource| 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, setAffectedItemsgetIndex0, getIndex1, getTypegetSourcepublic ArrayDiff getDiff()
public String toString()
toString in class ComplexListDataEventBuilt on June 20 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.