class org.aswing.DefaultListSelectionModel extends EventDispatcher

Default data model for list selections. @author paling

Class Fields

static var MULTIPLE_SELECTION:Int

Can select any item at a time.

static var SINGLE_SELECTION:Int

Only can select one most item at a time.

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from EventDispatcher

function addEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool, ?priority:Int, ?useWeakReference:Bool):Void
function dispatchEvent(event:Event):Bool
function hasEventListener(type:String):Bool
function removeEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool):Void
function toString():String
function willTrigger(type:String):Bool

function new(): Void

function addSelectionInterval(index0:Int, index1:Int, ?programmatic:Bool = true): Void

function clearSelection(?programmatic:Bool = true): Void

function getSelectionMode(): Int

function insertIndexInterval(index:Int, length:Int, before:Bool, ?programmatic:Bool = true): Void

function isSelectedIndex(index:Int): Bool

function removeIndexInterval(index0:Int, index1:Int, ?programmatic:Bool = true): Void

function removeSelectionInterval(index0:Int, index1:Int, ?programmatic:Bool = true): Void

function setLeadSelectionIndex(index:Int): Void

function setSelectionInterval(index0:Int, index1:Int, ?programmatic:Bool = true): Void

function setSelectionMode(selectionMode:Int): Void

Sets the selection mode. The default is MULTIPLE_SELECTION.

selectionMode

one of three values:

  • SINGLESELECTION
  • MULTIPLESELECTION

function toString(): String