TableView

scalafx.scene.control.TableView
See theTableView companion class
object TableView

$OBJCOMPSTA$TV$OBJCOMPEND

Attributes

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

Members list

Type members

Classlikes

class ResizeFeatures[S](val delegate: ResizeFeatures[S]) extends ResizeFeaturesBase[S], SFXDelegate[ResizeFeatures[S]]

Wraps a JavaFX ResizeFeatures.

Wraps a JavaFX ResizeFeatures.

Value parameters

delegate

JavaFX ResizeFeatures to be wrapped.

Attributes

Constructor

Creates a new ScalaFX ResizeFeatures from its JavaFX counterpart.

Companion
object
Supertypes
trait SFXDelegate[ResizeFeatures[S]]
class Object
trait Matchable
class Any

Object companion for scalafx.scene.controlTableView.ResizeFeatures.

Object companion for scalafx.scene.controlTableView.ResizeFeatures.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class TableViewFocusModel[S](val delegate: TableViewFocusModel[S]) extends TableFocusModel[S, TableColumn[S, _]], SFXDelegate[TableViewFocusModel[S]]

Wraps a JavaFX TableViewFocusModel.

Wraps a JavaFX TableViewFocusModel.

Value parameters

delegate

JavaFX TableViewFocusModel to be wrapped.

Attributes

Constructor

Creates a new ScalaFX TableViewFocusModel from its JavaFX counterpart.

Companion
object
Supertypes
class TableFocusModel[S, TableColumn[S, _]]
class FocusModel[S]
trait SFXDelegate[TableViewFocusModel[S]]
class Object
trait Matchable
class Any
Show all

Object companion for scalafx.scene.controlTableView.TableViewFocusModel.

Object companion for scalafx.scene.controlTableView.TableViewFocusModel.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class TableViewSelectionModel[S](val delegate: TableViewSelectionModel[S]) extends TableSelectionModel[S], SFXDelegate[TableViewSelectionModel[S]]

Wraps a JavaFX TableViewSelectionModel.

Wraps a JavaFX TableViewSelectionModel.

Value parameters

delegate

JavaFX TableViewSelectionModel to be wrapped.

Attributes

Constructor

Creates a new ScalaFX TableViewSelectionModel from its JavaFX counterpart.

Companion
object
Supertypes
class SelectionModel[S]
trait SFXDelegate[TableViewSelectionModel[S]]
class Object
trait Matchable
class Any
Show all

Object companion for scalafx.scene.controlTableView.TableViewSelectionModel.

Object companion for scalafx.scene.controlTableView.TableViewSelectionModel.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete fields

val ConstrainedResizePolicyAllColumns: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts other columns in order to fit the table width. During UI adjustment, proportionately resizes all columns to preserve the total width.

A resize policy that adjusts other columns in order to fit the table width. During UI adjustment, proportionately resizes all columns to preserve the total width.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val ConstrainedResizePolicyFlexLastColumn: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts columns, starting with the last one, in order to fit the table width. During UI adjustment, resizes the last column to preserve the total width. When the last column cannot be further resized due to a constraint, the column preceding the last one gets resized, and so on.

A resize policy that adjusts columns, starting with the last one, in order to fit the table width. During UI adjustment, resizes the last column to preserve the total width. When the last column cannot be further resized due to a constraint, the column preceding the last one gets resized, and so on.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val ConstrainedResizePolicyFlexNextColumn: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts columns, starting with the next one, in order to fit the table width. During UI adjustment, resizes the next column to preserve the total width. When the next column cannot be further resized due to a constraint, the following column gets resized, and so on.

A resize policy that adjusts columns, starting with the next one, in order to fit the table width. During UI adjustment, resizes the next column to preserve the total width. When the next column cannot be further resized due to a constraint, the following column gets resized, and so on.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val ConstrainedResizePolicyLastColumn: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts the last column in order to fit the table width. During UI adjustment, resizes the last column only to preserve the total width.

A resize policy that adjusts the last column in order to fit the table width. During UI adjustment, resizes the last column only to preserve the total width.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val ConstrainedResizePolicyNextColumn: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts the next column in order to fit the table width. During UI adjustment, resizes the next column the opposite way.

A resize policy that adjusts the next column in order to fit the table width. During UI adjustment, resizes the next column the opposite way.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val ConstrainedResizePolicySubsequentColumns: Callback[ResizeFeatures[_], Boolean]

A resize policy that adjusts subsequent columns in order to fit the table width. During UI adjustment, proportionally resizes subsequent columns to preserve the total width.

A resize policy that adjusts subsequent columns in order to fit the table width. During UI adjustment, proportionally resizes subsequent columns to preserve the total width.

When column constraints make it impossible to fit all the columns into the allowed area, the columns are either clipped, or an empty space appears. This policy disables the horizontal scroll bar.

Attributes

Since

20

val UnconstrainedResizePolicy: Callback[ResizeFeatures[_], Boolean]

Very simple resize policy that just resizes the specified column by the provided delta and shifts all other columns (to the right of the given column) further to the right (when the delta is positive) or to the left (when the delta is negative).

Very simple resize policy that just resizes the specified column by the provided delta and shifts all other columns (to the right of the given column) further to the right (when the delta is positive) or to the left (when the delta is negative).

It delegates to JavaFX UNCONSTRAINED_RESIZE_POLICY

Attributes

Deprecated fields

val ConstrainedResizePolicy: Callback[ResizeFeatures[_], Boolean]

Simple policy that ensures the width of all visible leaf columns in this table sum up to equal the width of the table itself. When the user resizes a column width with this policy, the table automatically adjusts the width of the right hand side columns. When the user increases a column width, the table decreases the width of the rightmost column until it reaches its minimum width. Then it decreases the width of the second rightmost column until it reaches minimum width and so on. When all right hand side columns reach minimum size, the user cannot increase the size of resized column any more.

Simple policy that ensures the width of all visible leaf columns in this table sum up to equal the width of the table itself. When the user resizes a column width with this policy, the table automatically adjusts the width of the right hand side columns. When the user increases a column width, the table decreases the width of the rightmost column until it reaches its minimum width. Then it decreases the width of the second rightmost column until it reaches minimum width and so on. When all right hand side columns reach minimum size, the user cannot increase the size of resized column any more.

It delegates to JavaFX CONSTRAINED_RESIZE_POLICY

Attributes

Deprecated
[Since version JavaFX 20]

Implicits

Implicits

implicit def sfxTableView2jfx[S](tv: TableView[S]): TableView[S]

Converts a ScalaFX TableView instance to its JavaFX counterpart.

Converts a ScalaFX TableView instance to its JavaFX counterpart.

Value parameters

tv

ScalaFX TableView

Attributes

Returns

JavaFX TableView