ChoiceBoxListCell

class Object
trait Matchable
class Any

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 Params
T

The type of the elements contained within the ListView.

Value Params
items

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

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 Params
T

The type of the elements contained within the ListView.

Value Params
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.

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 Params
T

The type of the elements contained within the ListView.

Value Params
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.

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 Params
T

The type of the elements contained within the ListView.

Value Params
items

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

Returns

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

Deprecated methods

@deprecated(message = "Use forListView[T](ObservableBuffer[T])", since = "1.0")
def forListView[T](items: ObservableList[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forListView[T](ObservableBuffer[T])
@deprecated(message = "Use forListView[T](StringConverter[T], ObservableBuffer[T])", since = "1.0")
def forListView[T](converter: StringConverter[T], items: ObservableList[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forListView[T](StringConverter[T], ObservableBuffer[T])
@deprecated(message = "Use forListView[T](StringConverter[T], T*)", since = "1.0")
def forListView[T](converter: StringConverter[T], items: T*): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forListView[T](StringConverter[T], T*)
@deprecated(message = "Use forListView[T](T*)", since = "1.0")
def forListView[T](items: Array[T]): Callback[ListView[T], ListCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

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 Params
cell

ScalaFX ChoiceBoxListCell