| Package | org.aswing |
| Class | public class DefaultListSelectionModel |
| Inheritance | DefaultListSelectionModel flash.events.EventDispatcher |
| Implements | ListSelectionModel |
| Method | Defined by | ||
|---|---|---|---|
| DefaultListSelectionModel | |||
|
addListSelectionListener(listener:Function):void
| DefaultListSelectionModel | ||
|
addSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
clearSelection(programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
getAnchorSelectionIndex():int
| DefaultListSelectionModel | ||
|
getLeadSelectionIndex():int
| DefaultListSelectionModel | ||
|
getMaxSelectionIndex():int
| DefaultListSelectionModel | ||
|
getMinSelectionIndex():int
| DefaultListSelectionModel | ||
|
getSelectionMode():int
| DefaultListSelectionModel | ||
|
insertIndexInterval(index:int, length:int, before:Boolean, programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
isSelectedIndex(index:int):Boolean
| DefaultListSelectionModel | ||
|
isSelectionEmpty():Boolean
| DefaultListSelectionModel | ||
|
removeIndexInterval(index0:int, index1:int, programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
removeListSelectionListener(listener:Function):void
| DefaultListSelectionModel | ||
|
removeSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
setAnchorSelectionIndex(index:int):void
| DefaultListSelectionModel | ||
|
setLeadSelectionIndex(index:int):void
| DefaultListSelectionModel | ||
|
setSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
| DefaultListSelectionModel | ||
|
setSelectionMode(selectionMode:int):void
Sets the selection mode.
| DefaultListSelectionModel | ||
|
toString():String
| DefaultListSelectionModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
fireListSelectionEvent(firstIndex:int, lastIndex:int, programmatic:Boolean):void
| DefaultListSelectionModel | ||
| Constant | Defined by | ||
|---|---|---|---|
| MULTIPLE_SELECTION : int = 1 [static]
Can select any item at a time.
| DefaultListSelectionModel | ||
| SINGLE_SELECTION : int = 0 [static]
Only can select one most item at a time.
| DefaultListSelectionModel | ||
| DefaultListSelectionModel | () | constructor |
public function DefaultListSelectionModel()
| addListSelectionListener | () | method |
public function addListSelectionListener(listener:Function):voidParameters
listener:Function |
| addSelectionInterval | () | method |
public function addSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int |
|
index1:int |
|
programmatic:Boolean (default = true) |
| clearSelection | () | method |
public function clearSelection(programmatic:Boolean = true):voidParameters
programmatic:Boolean (default = true) |
| fireListSelectionEvent | () | method |
protected function fireListSelectionEvent(firstIndex:int, lastIndex:int, programmatic:Boolean):voidParameters
firstIndex:int |
|
lastIndex:int |
|
programmatic:Boolean |
| getAnchorSelectionIndex | () | method |
public function getAnchorSelectionIndex():int
Returns
int |
| getLeadSelectionIndex | () | method |
public function getLeadSelectionIndex():int
Returns
int |
| getMaxSelectionIndex | () | method |
public function getMaxSelectionIndex():int
Returns
int |
| getMinSelectionIndex | () | method |
public function getMinSelectionIndex():int
Returns
int |
| getSelectionMode | () | method |
public function getSelectionMode():int
Returns
int |
| insertIndexInterval | () | method |
public function insertIndexInterval(index:int, length:int, before:Boolean, programmatic:Boolean = true):voidParameters
index:int |
|
length:int |
|
before:Boolean |
|
programmatic:Boolean (default = true) |
| isSelectedIndex | () | method |
public function isSelectedIndex(index:int):BooleanParameters
index:int |
Boolean |
| isSelectionEmpty | () | method |
public function isSelectionEmpty():Boolean
Returns
Boolean |
| removeIndexInterval | () | method |
public function removeIndexInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int |
|
index1:int |
|
programmatic:Boolean (default = true) |
| removeListSelectionListener | () | method |
public function removeListSelectionListener(listener:Function):voidParameters
listener:Function |
| removeSelectionInterval | () | method |
public function removeSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int |
|
index1:int |
|
programmatic:Boolean (default = true) |
| setAnchorSelectionIndex | () | method |
public function setAnchorSelectionIndex(index:int):voidParameters
index:int |
| setLeadSelectionIndex | () | method |
public function setLeadSelectionIndex(index:int):voidParameters
index:int |
| setSelectionInterval | () | method |
public function setSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int |
|
index1:int |
|
programmatic:Boolean (default = true) |
| setSelectionMode | () | method |
public function setSelectionMode(selectionMode:int):voidSets the selection mode. The default is MULTIPLE_SELECTION.
ParametersselectionMode:int — one of three values:
|
| toString | () | method |
public override function toString():String
Returns
String |
| MULTIPLE_SELECTION | constant |
public static const MULTIPLE_SELECTION:int = 1Can select any item at a time.
| SINGLE_SELECTION | constant |
public static const SINGLE_SELECTION:int = 0Only can select one most item at a time.