站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

VeryComplexListDataEvent (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.event
Class VeryComplexListDataEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.ListDataEvent
          extended by org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
              extended by 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

Field Summary
 
Fields inherited from class org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
ITEMS_ADDED, ITEMS_REMOVED
 
Fields inherited from class javax.swing.event.ListDataEvent
CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VeryComplexListDataEvent(Object source, TabData[] old, TabData[] nue)
          Creates a new instance of VeryComplexListDataEvent
 
Method Summary
 ArrayDiff getDiff()
          Returns an ArrayDiff object if the two arrays this event was created with are not identical
 String toString()
           
 
Methods inherited from class org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
getAffectedItems, getIndices, isTextChanged, isUserObjectChanged, setAffectedItems
 
Methods inherited from class javax.swing.event.ListDataEvent
getIndex0, getIndex1, getType
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VeryComplexListDataEvent

public VeryComplexListDataEvent(Object source,
                                TabData[] old,
                                TabData[] nue)
Creates a new instance of VeryComplexListDataEvent

Method Detail

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

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.