| javax.swing.event.ListDataEvent org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
All known Subclasses: org.netbeans.swing.tabcontrol.event.VeryComplexListDataEvent,
ComplexListDataEvent | public class ComplexListDataEvent extends ListDataEvent (Code) | | An extension to ListDataEvent which can report data about non-contiguous
changes to data.
Eventually VeryComplexListDataEvent (which can also report
about relocation of items) should be merged into this class; it's currently
slightly crufty.
author: Tim Boudreau |
Constructor Summary | |
public | ComplexListDataEvent(Object source, int id, int[] indices, boolean textChanged) Creates a new instance of ComplexListDataEvent. | public | ComplexListDataEvent(Object source, int id, int start, int end) Passthrough constructor for ListDataEvent. | public | ComplexListDataEvent(Object source, int id, int start, int end, boolean textChanged, boolean compChange) | public | ComplexListDataEvent(Object source, int id, int start, int end, boolean textChanged) Passthrough constructor for ListDataEvent. |
ITEMS_ADDED | final public static int ITEMS_ADDED(Code) | | ID for events in which non-contiguous elements have been added
|
ITEMS_CHANGED | final static int ITEMS_CHANGED(Code) | | ID for events in which non-contiguous elements have been added, removed
or changed
|
ITEMS_REMOVED | final public static int ITEMS_REMOVED(Code) | | ID for events in which non-contiguous elements have been removed
|
ComplexListDataEvent | public ComplexListDataEvent(Object source, int id, int[] indices, boolean textChanged)(Code) | | Creates a new instance of ComplexListDataEvent. The index0 and index1
properties will return -1.
Parameters: source - The event source Parameters: id - The type of change Parameters: indices - An array of possibly non-contiguous indices of datawhich has changed Parameters: textChanged - True if the change is one that can affect display(icon width or text changes) |
ComplexListDataEvent | public ComplexListDataEvent(Object source, int id, int start, int end)(Code) | | Passthrough constructor for ListDataEvent. getIndices()
will return null for this event.
Parameters: source - The source of the event Parameters: id - The type of change Parameters: start - The start index for the change Parameters: end - The end index for the change |
ComplexListDataEvent | public ComplexListDataEvent(Object source, int id, int start, int end, boolean textChanged, boolean compChange)(Code) | | |
ComplexListDataEvent | public ComplexListDataEvent(Object source, int id, int start, int end, boolean textChanged)(Code) | | Passthrough constructor for ListDataEvent. getIndices()
will return null for this event.
Parameters: source - The source of the event Parameters: id - The type of change Parameters: start - The start index of a contiguous change Parameters: end - The end index of a contiguous change Parameters: textChanged - True if the change is one that can affect displaymetrics (text or icon size) |
getIndices | public int[] getIndices()(Code) | | Get the indices which have changed for this event.
The changed indices, or null for contiguous data changes |
isTextChanged | public boolean isTextChanged()(Code) | | Does the change event represent a change that can affect display metrics
True if the change affected text length or icon width |
isUserObjectChanged | public boolean isUserObjectChanged()(Code) | | Does the change event represent a change in components. This should be
true for cases where a component was replaced, added or removed
|
|
|