Class org.aswing.events.ListDataEvent

Description

See Also

Field Index

CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED

Method Index

new ListDataEvent()
getIndex0(), getIndex1(), getType(), toString()

Inherited from Event

Constructor Detail

ListDataEvent

public function ListDataEvent(source:Object, type:String, index0:Number, index1:Number)

Constructs a ListDataEvent object.

Parameters

sourcethe source Object (typically this)
typean int specifying CONTENTS_CHANGED, INTERVAL_ADDED, or INTERVAL_REMOVED
index0an int specifying the bottom of a range
index1an int specifying the top of a range

Field Detail

CONTENTS_CHANGED

static public CONTENTS_CHANGED:String
Identifies one or more changes in the lists contents.

INTERVAL_ADDED

static public INTERVAL_ADDED:String
Identifies the addition of one or more contiguous items to the list

INTERVAL_REMOVED

static public INTERVAL_REMOVED:String
Identifies the removal of one or more contiguous items from the list

Method Detail

getType

public function getType():String

Returns the event type. The possible values are:

Return

an number representing the type value

Overrides

getType() in org.aswing.Event

getIndex0

public function getIndex0():Number

Returns the lower index of the range. For a single element, this value is the same as that returned by getIndex1.

Return

an int representing the lower index value

getIndex1

public function getIndex1():Number

Returns the upper index of the range. For a single element, this value is the same as that returned by getIndex0.

Return

an int representing the upper index value

toString

public function toString():String