object CheckBoxTreeCell
Companion Object for scalafx.scene.control.cell.CheckBoxTreeCell.
- Source
- CheckBoxTreeCell.scala
- Alphabetic
- By Inheritance
- CheckBoxTreeCell
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
- T
The type of the elements contained within the TreeItem instances.
- selectedProperty
A Function that, given an object of type
TreeItem
, will return anObservableValue[Boolean]
that represents whether the given item is selected or not.- converter
A StringConverter that, give an object of type TreeItem, will return a String that can be used to represent the object visually.
- 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.
- T
The type of the elements contained within the TreeItem instances.
- selectedProperty
A Function that, given an object of type
TreeItem
, will return anObservableValue[Boolean]
that represents whether the given item is selected or not.- 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]: (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.
- T
The type of the elements contained within the CheckBoxTreeItem instances.
- 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).
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
sfxCheckBoxTreeCell2jfx[T](cell: CheckBoxTreeCell[T]): javafx.scene.control.cell.CheckBoxTreeCell[T]
Converts a ScalaFX
CheckBoxTableCell
to its JavaFX counterpart.Converts a ScalaFX
CheckBoxTableCell
to its JavaFX counterpart.- cell
ScalaFX
CheckBoxTableCell
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
forTreeView[T](getSelectedProperty: Callback[javafx.scene.control.TreeItem[T], ObservableValue[Boolean]], converter: StringConverter[javafx.scene.control.TreeItem[T]]): Callback[javafx.scene.control.TreeView[T], javafx.scene.control.TreeCell[T]]
Added to satisfy Spec tests.
Added to satisfy Spec tests.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0) Use forTreeView[T](TreeItem[T] => ObservableValue[Boolean, java.lang.Boolean], StringConverter[TreeItem[T]])
-
def
forTreeView[T](getSelectedProperty: Callback[javafx.scene.control.TreeItem[T], ObservableValue[Boolean]]): Callback[javafx.scene.control.TreeView[T], javafx.scene.control.TreeCell[T]]
Added to satisfy Spec tests.
Added to satisfy Spec tests.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0) Use forTreeView[T](TreeItem[T] => ObservableValue[Boolean, java.lang.Boolean]])
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.