SelectionModel

scalafx.scene.control.SelectionModel
See theSelectionModel companion object
abstract class SelectionModel[T](val delegate: SelectionModel[T]) extends SFXDelegate[SelectionModel[T]]

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[SelectionModel[T]]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def clearAndSelect(index: Int): Unit

A method that clears any selection prior to setting the selection to the given index.

A method that clears any selection prior to setting the selection to the given index.

Attributes

Clears the selection model of all selected indices.

Clears the selection model of all selected indices.

Attributes

def clearSelection(index: Int): Unit

This method will clear the selection of the item in the given index.

This method will clear the selection of the item in the given index.

Attributes

This method is available to test whether there are any selected indices/items.

This method is available to test whether there are any selected indices/items.

Attributes

def isSelected(index: Int): Boolean

Convenience method to inform if the given index is currently selected in this SelectionModel.

Convenience method to inform if the given index is currently selected in this SelectionModel.

Attributes

def select(index: Int): Unit

This will select the given index in the selection model, assuming the index is within the valid range (i.e.

This will select the given index in the selection model, assuming the index is within the valid range (i.e.

Attributes

def select(obj: T): Unit

This method will attempt to select the index that contains the given object.

This method will attempt to select the index that contains the given object.

Attributes

def selectFirst(): Unit

This method will attempt to select the first index in the control.

This method will attempt to select the first index in the control.

Attributes

def selectLast(): Unit

This method will attempt to select the last index in the control.

This method will attempt to select the last index in the control.

Attributes

def selectNext(): Unit

This method will attempt to select the index directly after the current focused index.

This method will attempt to select the index directly after the current focused index.

Attributes

This method will attempt to select the index directly before the current focused index.

This method will attempt to select the index directly before the current focused index.

Attributes

Refers to the selected index property, which is used to indicate the currently selected index value in the selection model.

Refers to the selected index property, which is used to indicate the currently selected index value in the selection model.

Attributes

Refers to the selected item property, which is used to indicate the currently selected item in the selection model.

Refers to the selected item property, which is used to indicate the currently selected item in the selection model.

Attributes

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: SelectionModel[T]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes