charvax.swing.event

Class ListDataEvent


public class ListDataEvent
extends java.util.EventObject

An event that characterizes a change in a list.

Field Summary

static int
CONTENTS_CHANGED
static int
INTERVAL_ADDED
static int
INTERVAL_REMOVED

Constructor Summary

ListDataEvent(Object source_, int type_, int firstIndex_, int lastIndex_)
Construct a ListDataEvent.

Method Summary

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.

Field Details

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
Field Value:
301

INTERVAL_ADDED

public static final int INTERVAL_ADDED
Field Value:
302

INTERVAL_REMOVED

public static final int INTERVAL_REMOVED
Field Value:
303

Constructor Details

ListDataEvent

public ListDataEvent(Object source_,
                     int type_,
                     int firstIndex_,
                     int lastIndex_)
Construct a ListDataEvent.
Parameters:
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.

Method Details

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.