charvax.swing.event
Class ListDataEvent
java.util.EventObject
charvax.swing.event.ListDataEvent
public class ListDataEvent
extends java.util.EventObject
An event that characterizes a change in a list.
ListDataEvent(Object source_, int type_, int firstIndex_, int lastIndex_) - Construct a ListDataEvent.
|
int | getIndex0() - Get the index of the first row that changed.
|
int | getIndex1() - Get the index of the last row that changed.
|
int | getType() - Returns the type of event, which is always
CONTENTS_CHANGED.
|
CONTENTS_CHANGED
public static final int CONTENTS_CHANGED
INTERVAL_ADDED
public static final int INTERVAL_ADDED
INTERVAL_REMOVED
public static final int INTERVAL_REMOVED
ListDataEvent
public ListDataEvent(Object source_,
int type_,
int firstIndex_,
int lastIndex_)
Construct a ListDataEvent.
source_
- the object that initiated this event (usually a
DefaultListSelectionModel).type_
- an int specifying the type of event; must be
CONTENTS_CHANGED (INTERVAL_ADDED or INTERVAL_REMOVED are unused
in CHARVA).firstIndex_
- an index specifying the bottom of a range.lastIndex_
- an index specifying the top of a range.
getIndex0
public int getIndex0()
Get the index of the first row that changed.
getIndex1
public int getIndex1()
Get the index of the last row that changed.
getType
public int getType()
Returns the type of event, which is always
CONTENTS_CHANGED.