CheckBoxTableCell

scalafx.scene.control.cell.CheckBoxTableCell
See theCheckBoxTableCell companion class

Attributes

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

Members list

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 parameters

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.

Attributes

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 parameters

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.

Attributes

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 parameters

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.

Attributes

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 parameters

S

cell value type.

Value parameters

column

column for which to create the factory

Attributes

Returns

Cell factory

Deprecated methods

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.

Attributes

Deprecated
[Since version 1.0] Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean])
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.

Attributes

Deprecated
[Since version 1.0] Use forTableView[S, T](Int => ObservableValue[Boolean, java.lang.Boolean], Boolean)
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.

Attributes

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 parameters

cell

ScalaFX CheckBoxTableCell

Attributes