CheckBoxTableCell

class Object
trait Matchable
class Any

Value members

Concrete methods

def forTableColumn[S, T](selectedProperty: Int => ObservableValue[Boolean, Boolean]): TableColumn[S, T] => TableCell[S, T]

Creates a cell factory for use in a TableColumn cell factory.

Creates a cell factory for use in a TableColumn cell factory.

Value Params
selectedProperty

A Callback that, given an object of type TableColumn[S,T], will return an ObservableValue[Boolean] that represents whether the given item is selected or not.

def forTableColumn[S, T](selectedProperty: Int => ObservableValue[Boolean, Boolean], showLabel: Boolean): TableColumn[S, T] => TableCell[S, T]

Creates a cell factory for use in a TableColumn cell factory.

Creates a cell factory for use in a TableColumn cell factory.

Value Params
selectedProperty

A Callback that, given an object of type TableColumn[S,T], will return an ObservableValue[Boolean] that represents whether the given item is selected or not.

showLabel

In some cases, it may be desirable to show a label in the TableCell beside the CheckBox.

def forTableColumn[S, T](selectedProperty: Int => ObservableValue[Boolean, Boolean], converter: StringConverter[T]): TableColumn[S, T] => TableCell[S, T]

Creates a cell factory for use in a TableColumn cell factory.

Creates a cell factory for use in a TableColumn cell factory.

Value Params
converter

A StringConverter that, give an object of type T, will return a String that can be used to represent the object visually.

selectedProperty

A Callback that, given an object of type TableColumn[S,T], will return an ObservableValue[Boolean] that represents whether the given item is selected or not.

def forTableColumn[S](column: TableColumn[S, Boolean]): Callback[TableColumn[S, Boolean], TableCell[S, Boolean]]

Creates a cell factory producing CheckBoxTableCell for use in a TableColumn cell factory. This method requires that the TableColumn be of type Boolean. When used in a TableColumn, the CheckBoxCell is rendered with a CheckBox centered in the column.

Creates a cell factory producing CheckBoxTableCell for use in a TableColumn cell factory. This method requires that the TableColumn be of type Boolean. When used in a TableColumn, the CheckBoxCell is rendered with a CheckBox centered in the column.

Equivalent to JavaFX static method forTableColumn.

Example use:

 new TableColumn[Item, java.lang.Boolean] {
   ...
   cellFactory = CheckBoxTableCell.forTableColumn(this)
   ...
 }
Type Params
S

cell value type.

Value Params
column

column for which to create the factory

Returns

Cell factory

Deprecated methods

@deprecated(message = "Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean])", since = "1.0")
def forTableColumn[S, T](getSelectedProperty: Callback[Integer, ObservableValue[Boolean]]): Callback[TableColumn[Any, Any], TableCell[Any, Any]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean])
@deprecated(message = "Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean], Boolean)", since = "1.0")
def forTableColumn[S, T](getSelectedProperty: Callback[Integer, ObservableValue[Boolean]], showLabel: Boolean): Callback[TableColumn[Any, Any], TableCell[Any, Any]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean], Boolean)
@deprecated(message = "Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean], StringConverter[T])", since = "1.0")
def forTableColumn[S, T](getSelectedProperty: Callback[Integer, ObservableValue[Boolean]], converter: StringConverter[T]): Callback[TableColumn[Any, T], TableCell[Any, T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Deprecated
[Since version 1.0] Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean], StringConverter[T])

Implicits

Implicits

implicit def sfxCheckBoxTableCell2jfx[S, T](cell: CheckBoxTableCell[S, T]): CheckBoxTableCell[S, T]

Converts a ScalaFX CheckBoxTableCell to its JavaFX counterpart.

Converts a ScalaFX CheckBoxTableCell to its JavaFX counterpart.

Value Params
cell

ScalaFX CheckBoxTableCell