当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
VeryComplexListDataEvent (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.event
Class VeryComplexListDataEvent
java.lang.Object
java.util.EventObject
javax.swing.event.ListDataEvent
org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
org.netbeans.swing.tabcontrol.event.VeryComplexListDataEvent
- All Implemented Interfaces:
- Serializable
public final class VeryComplexListDataEvent
- extends ComplexListDataEvent
Event which provides granular data on setTabs() events which may contain
arbitrary differences, moves, additions and removals of array contents (or no
changes at all).
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.
- See Also:
ArrayDiff
,
Serialized Form
VeryComplexListDataEvent
public VeryComplexListDataEvent(Object source,
TabData[] old,
TabData[] nue)
- Creates a new instance of VeryComplexListDataEvent
getDiff
public ArrayDiff getDiff()
- Returns an ArrayDiff object if the two arrays this event was created with
are not identical
toString
public String toString()
- Overrides:
toString
in class ComplexListDataEvent