Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CONTENTS_CHANGED
Identifies one or more changes in the lists contents. |
| private int | |
| private int | |
| public static final int | INTERVAL_ADDED
Identifies the addition of one or more contiguous items to the list |
| public static final int | INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from the list |
| private int |
| Access | Constructor and Description |
|---|---|
| public | ListDataEvent(Object
the source Object (typically source, int type, int this)one end of the new interval index0, int the other end of the new interval index1)Constructs a ListDataEvent object. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public String | Returns: a string representation of this ListDataEvent.Overrides java. Returns a string representation of this ListDataEvent. |
| CONTENTS_CHANGED | back to summary |
|---|---|
| public static final int CONTENTS_CHANGED Identifies one or more changes in the lists contents. | |
| index0 | back to summary |
|---|---|
| private int index0 | |
| index1 | back to summary |
|---|---|
| private int index1 | |
| INTERVAL_ADDED | back to summary |
|---|---|
| public static final int INTERVAL_ADDED Identifies the addition of one or more contiguous items to the list | |
| INTERVAL_REMOVED | back to summary |
|---|---|
| public static final int INTERVAL_REMOVED Identifies the removal of one or more contiguous items from the list | |
| type | back to summary |
|---|---|
| private int type | |
| ListDataEvent | back to summary |
|---|---|
| public ListDataEvent(Object source, int type, int index0, int index1) Constructs a ListDataEvent object. If index0 is > index1, index0 and index1 will be swapped such that index0 will always be <= index1.
| |
| getIndex0 | back to summary |
|---|---|
| public int getIndex0() Returns the lower index of the range. For a single
element, this value is the same as that returned by
| |
| getIndex1 | back to summary |
|---|---|
| public int getIndex1() Returns the upper index of the range. For a single
element, this value is the same as that returned by
| |
| getType | back to summary |
|---|---|
| public int getType() Returns the event type. The possible values are:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this ListDataEvent. This method
is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be
| |