|
org.netbeans.swing.tabcontrol 1.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.swing.event.ListDataEvent
org.netbeans.swing.tabcontrol.event.ComplexListDataEvent
public class ComplexListDataEvent
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.
Field Summary | |
---|---|
static int |
ITEMS_ADDED
ID for events in which non-contiguous elements have been added |
static int |
ITEMS_REMOVED
ID for events in which non-contiguous elements have been 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 | |
---|---|
ComplexListDataEvent(Object source,
int id,
int[] indices,
boolean textChanged)
Creates a new instance of ComplexListDataEvent. |
|
ComplexListDataEvent(Object source,
int id,
int start,
int end)
Passthrough constructor for ListDataEvent. |
|
ComplexListDataEvent(Object source,
int id,
int start,
int end,
boolean textChanged)
Passthrough constructor for ListDataEvent. |
|
ComplexListDataEvent(Object source,
int id,
int start,
int end,
boolean textChanged,
boolean compChange)
|
Method Summary | |
---|---|
TabData[] |
getAffectedItems()
|
int[] |
getIndices()
Get the indices which have changed for this event. |
boolean |
isTextChanged()
Does the change event represent a change that can affect display metrics |
boolean |
isUserObjectChanged()
Does the change event represent a change in components. |
void |
setAffectedItems(TabData[] td)
|
String |
toString()
|
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 |
Field Detail |
---|
public static final int ITEMS_ADDED
public static final int ITEMS_REMOVED
Constructor Detail |
---|
public ComplexListDataEvent(Object source, int id, int[] indices, boolean textChanged)
source
- The event sourceid
- The type of changeindices
- An array of possibly non-contiguous indices of data
which has changedtextChanged
- True if the change is one that can affect display
(icon width or text changes)public ComplexListDataEvent(Object source, int id, int start, int end)
getIndices()
will return null for this event.
source
- The source of the eventid
- The type of changestart
- The start index for the changeend
- The end index for the changepublic 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)
getIndices()
will return null for this event.
source
- The source of the eventid
- The type of changestart
- The start index of a contiguous changeend
- The end index of a contiguous changetextChanged
- True if the change is one that can affect display
metrics (text or icon size)Method Detail |
---|
public int[] getIndices()
public boolean isTextChanged()
public boolean isUserObjectChanged()
public String toString()
toString
in class ListDataEvent
public void setAffectedItems(TabData[] td)
public TabData[] getAffectedItems()
|
org.netbeans.swing.tabcontrol 1.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |