ChoiceBoxListCell

scalafx.scene.control.cell.ChoiceBoxListCell
See theChoiceBoxListCell companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def forListView[T](items: ObservableBuffer[T]): ListView[T] => ListCell[T]

Creates a ChoiceBox cell factory for use in ListView controls.

Creates a ChoiceBox cell factory for use in ListView controls.

Type parameters

T

The type of the elements contained within the ListView.

Value parameters

items

A ObservableBuffer containing Zero or more items that will be shown to the user when the ChoiceBox menu is showing.

Attributes

Returns

A Function that will return a ListCell that is able to work on the type of element contained within the ListView.

def forListView[T](converter: StringConverter[T], items: ObservableBuffer[T]): ListView[T] => ListCell[T]

Creates a ChoiceBox cell factory for use in ListView controls.

Creates a ChoiceBox cell factory for use in ListView controls.

Type parameters

T

The type of the elements contained within the ListView.

Value parameters

converter

A StringConverter to convert the given item (of type T) to a String for displaying to the user.

items

A ObservableBuffer containing Zero or more items that will be shown to the user when the ChoiceBox menu is showing.

Attributes

Returns

A Function that will return a ListCell that is able to work on the type of element contained within the ListView.

def forListView[T](converter: StringConverter[T], items: T*): ListView[T] => ListCell[T]

Creates a ChoiceBox cell factory for use in ListView controls.

Creates a ChoiceBox cell factory for use in ListView controls.

Type parameters

T

The type of the elements contained within the ListView.

Value parameters

converter

A StringConverter to convert the given item (of type T) to a String for displaying to the user.

items

Zero or more items that will be shown to the user when the ChoiceBox menu is showing.

Attributes

Returns

A Function that will return a ListCell that is able to work on the type of element contained within the ListView.

def forListView[T](items: T*): ListView[T] => ListCell[T]

Creates a ChoiceBox cell factory for use in ListView controls.

Creates a ChoiceBox cell factory for use in ListView controls.

Type parameters

T

The type of the elements contained within the ListView.

Value parameters

items

Zero or more items that will be shown to the user when the ChoiceBox menu is showing.

Attributes

Returns

A Function that will return a ListCell that is able to work on the type of element contained within the ListView.

Deprecated methods

def forListView[T](items: ObservableList[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forListView[T](ObservableBuffer[T])
def forListView[T](converter: StringConverter[T], items: ObservableList[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forListView[T](StringConverter[T], ObservableBuffer[T])
def forListView[T](converter: StringConverter[T], items: T*): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forListView[T](StringConverter[T], T*)
def forListView[T](items: Array[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forListView[T](T*)

Implicits

Implicits

implicit def sfxChoiceBoxListCell2jfx[T](cell: ChoiceBoxListCell[T]): ChoiceBoxListCell[T]

Converts a ScalaFX ChoiceBoxListCell to its JavaFX counterpart.

Converts a ScalaFX ChoiceBoxListCell to its JavaFX counterpart.

Value parameters

cell

ScalaFX ChoiceBoxListCell

Attributes