|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.swing.event.ListDataEvent
public class ListDataEvent
Defines an event that encapsulates changes to a list.
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 JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Field Summary | |
---|---|
static int |
CONTENTS_CHANGED
Identifies one or more changes in the lists contents. |
static int |
INTERVAL_ADDED
Identifies the addition of one or more contiguous items to the list |
static int |
INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from the list |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ListDataEvent(Object source,
int type,
int index0,
int index1)
Constructs a ListDataEvent object. |
Method Summary | |
---|---|
int |
getIndex0()
Returns the lower index of the range. |
int |
getIndex1()
Returns the upper index of the range. |
int |
getType()
Returns the event type. |
String |
toString()
Returns a string representation of this ListDataEvent. |
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 CONTENTS_CHANGED
public static final int INTERVAL_ADDED
public static final int INTERVAL_REMOVED
Constructor Detail |
---|
public ListDataEvent(Object source, int type, int index0, int index1)
source
- the source Object (typically this
)type
- an int specifying CONTENTS_CHANGED
,
INTERVAL_ADDED
, or INTERVAL_REMOVED
index0
- one end of the new intervalindex1
- the other end of the new intervalMethod Detail |
---|
public int getType()
public int getIndex0()
getIndex1()
.
public int getIndex1()
getIndex0()
.
public String toString()
null
.
toString
in class EventObject
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.