interface org.aswing.SingleSelectionModel
| Implementors | ||||
![]()  | DefaultSingleSelectionModel | 
  | ||
A model that supports at most one indexed selection. @author paling
Instance Fields
function addStateListener(listener:Dynamic ->Void?priority:Int, ?useWeakReference:Bool): Void
Adds a listener to listen the Model's state change event. @see org.aswing.event.InteractiveEvent#STATE_CHANGED
| listener | the listener  | 
| priority | the priority  | 
| useWeakReference | Determines whether the reference to the listener is strong or weak.  | 
function clearSelection(?programmatic:Bool): Void
Clears the selection (to -1).
| programmatic | indicate if this is a programmatic change.  | 
function getSelectedIndex(): Int
Returns the model's selection.
@see #setSelectedIndex()
| returns | the model's selection, or -1 if there is no selection  | 
function isSelected(): Bool
Returns true if the selection model currently has a selected value.
| returns | true if a value is currently selected  | 
function removeStateListener(listener:Dynamic ->Void): Void
Removes a state listener. @see org.aswing.event.InteractiveEvent#STATE_CHANGED
| listener | the listener to be removed.  | 
function setSelectedIndex(index:Int, ?programmatic:Bool): Void
Sets the model's selected index to index.
Notifies any listeners if the model changes.
@see #getSelectedIndex() @see #addChangeListener()
| index | an int specifying the model selection.  | 
| programmatic | indicate if this is a programmatic change.  | 
            