CheckBoxTreeCell

scalafx.scene.control.cell.CheckBoxTreeCell
See theCheckBoxTreeCell companion class

Attributes

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

Members list

Value members

Concrete methods

def forTreeView[T]: TreeView[T] => TreeCell[T]

Creates a cell factory for use in a TreeView control, although there is a major assumption when used in a TreeView: this cell factory assumes that the TreeView root, and all children are instances of CheckBoxTreeItem, rather than the default TreeItem class that is used normally.

Creates a cell factory for use in a TreeView control, although there is a major assumption when used in a TreeView: this cell factory assumes that the TreeView root, and all children are instances of CheckBoxTreeItem, rather than the default TreeItem class that is used normally.

Type parameters

T

The type of the elements contained within the CheckBoxTreeItem instances.

Attributes

Returns

A Function that will return a TreeCell that is able to work on the type of element contained within the TreeView root, and all of its children (recursively).

def forTreeView[T](selectedProperty: TreeItem[T] => ObservableValue[Boolean, Boolean]): TreeView[T] => TreeCell[T]

Creates a cell factory for use in a TreeView control.

Creates a cell factory for use in a TreeView control.

Type parameters

T

The type of the elements contained within the TreeItem instances.

Value parameters

selectedProperty

A Function that, given an object of type TreeItem, will return an ObservableValue[Boolean] that represents whether the given item is selected or not.

Attributes

Returns

A Function that will return a TreeCell that is able to work on the type of element contained within the TreeView root, and all of its children (recursively).

def forTreeView[T](selectedProperty: TreeItem[T] => ObservableValue[Boolean, Boolean], converter: StringConverter[TreeItem[T]]): TreeView[T] => TreeCell[T]

Creates a cell factory for use in a TreeView control.

Creates a cell factory for use in a TreeView control.

Type parameters

T

The type of the elements contained within the TreeItem instances.

Value parameters

converter

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

selectedProperty

A Function that, given an object of type TreeItem, will return an ObservableValue[Boolean] that represents whether the given item is selected or not.

Attributes

Returns

A Function that will return a TreeCell that is able to work on the type of element contained within the TreeView root, and all of its children (recursively).

Deprecated methods

def forTreeView[T](getSelectedProperty: Callback[TreeItem[T], ObservableValue[Boolean]]): Callback[TreeView[T], TreeCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forTreeView[T](TreeItem[T] => ObservableValue[Boolean, java.lang.Boolean]])
def forTreeView[T](getSelectedProperty: Callback[TreeItem[T], ObservableValue[Boolean]], converter: StringConverter[TreeItem[T]]): Callback[TreeView[T], TreeCell[T]]

Added to satisfy Spec tests.

Added to satisfy Spec tests.

Attributes

Deprecated
[Since version 1.0] Use forTreeView[T](TreeItem[T] => ObservableValue[Boolean, java.lang.Boolean], StringConverter[TreeItem[T]])

Implicits

Implicits

implicit def sfxCheckBoxTreeCell2jfx[T](cell: CheckBoxTreeCell[T]): CheckBoxTreeCell[T]

Converts a ScalaFX CheckBoxTableCell to its JavaFX counterpart.

Converts a ScalaFX CheckBoxTableCell to its JavaFX counterpart.

Value parameters

cell

ScalaFX CheckBoxTableCell

Attributes