Packageorg.aswing.event
Classpublic class ListDataEvent
InheritanceListDataEvent Inheritance ModelEvent

The event for list model.

See also

org.aswing.JList
org.aswing.ListModel
org.aswing.event.ListDataListener


Public Methods
 MethodDefined by
  
ListDataEvent(source:Object, index0:int, index1:int, removedItems:Array)
Constructs a ListDataEvent object.
ListDataEvent
  
getIndex0():int
Returns the lower index of the range.
ListDataEvent
  
getIndex1():int
Returns the upper index of the range.
ListDataEvent
  
Returns the removed items, it is null or empty array when this is not a removed event.
ListDataEvent
 Inherited
getSource():Object
ModelEvent
Constructor detail
ListDataEvent()constructor
public function ListDataEvent(source:Object, index0:int, index1:int, removedItems:Array)

Constructs a ListDataEvent object.

Parameters
source:Object — the source Object (typically this)
 
index0:int — an int specifying the bottom of a range
 
index1:int — an int specifying the top of a range
 
removedItems:Array — (optional) the items has been removed.
Method detail
getIndex0()method
public function getIndex0():int

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

Returns
int — an int representing the lower index value
getIndex1()method 
public function getIndex1():int

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

Returns
int — an int representing the upper index value
getRemovedItems()method 
public function getRemovedItems():Array

Returns the removed items, it is null or empty array when this is not a removed event.

Returns
Array — a array that contains the removed items