TableViewFocusModel

scalafx.scene.control.TableView.TableViewFocusModel
See theTableViewFocusModel companion object
class TableViewFocusModel[S](val delegate: TableViewFocusModel[S]) extends TableFocusModel[S, TableColumn[S, _]], SFXDelegate[TableViewFocusModel[S]]

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
Graph
Supertypes
class TableFocusModel[S, TableColumn[S, _]]
class FocusModel[S]
trait SFXDelegate[TableViewFocusModel[S]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(tableView: TableView[S])

Creates a default TableViewFocusModel instance that will be used to manage focus of the provided TableView control.

Creates a default TableViewFocusModel instance that will be used to manage focus of the provided TableView control.

Value parameters

tableView

The tableView upon which this focus model operates.

Attributes

Concrete methods

def focus(index: Int, column: TableColumn[S, _]): Unit

Causes the item at the given index to receive the focus.

Causes the item at the given index to receive the focus.

Value parameters

column

The column of the item to give focus to. Can be null.

index

The row index of the item to give focus to.

Attributes

def focus(pos: TablePosition[_, _]): Unit

Convenience method for setting focus on a particular row or cell using a scalafx.scene.control.TablePosition.

Convenience method for setting focus on a particular row or cell using a scalafx.scene.control.TablePosition.

Value parameters

pos

The table position where focus should be set.

Attributes

def focusedCell: ReadOnlyObjectProperty[TablePosition[_, _]]

The position of the current item in the TableView which has the focus.

The position of the current item in the TableView which has the focus.

Attributes

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def focus(row: Int, column: TableColumn[S, _]): Unit

Causes the item at the given index to receive the focus.

Causes the item at the given index to receive the focus.

Value parameters

column

The column of the item to give focus to. Can be null.

row

The row index of the item to give focus to.

Attributes

Inherited from:
TableFocusModel
def focus(index: Int): Unit

Causes the item at the given index to receive the focus.

Causes the item at the given index to receive the focus.

Value parameters

index

The index of the item to get focus.

Attributes

Inherited from:
FocusModel

Attempts to move focus to the cell above the currently focused cell.

Attempts to move focus to the cell above the currently focused cell.

Attributes

Inherited from:
TableFocusModel

Attempts to move focus to the cell below the currently focused cell.

Attempts to move focus to the cell below the currently focused cell.

Attributes

Inherited from:
TableFocusModel

Attempts to move focus to the cell to the left of the currently focused cell.

Attempts to move focus to the cell to the left of the currently focused cell.

Attributes

Inherited from:
TableFocusModel
def focusNext(): Unit

Attempts to give focus to the row after to the currently focused row.

Attempts to give focus to the row after to the currently focused row.

Attributes

Inherited from:
FocusModel

Attempts to give focus to the row previous to the currently focused row.

Attempts to give focus to the row previous to the currently focused row.

Attributes

Inherited from:
FocusModel

Attempts to move focus to the cell to the right of the the currently focused cell.

Attempts to move focus to the cell to the right of the the currently focused cell.

Attributes

Inherited from:
TableFocusModel

The index of the current item in the FocusModel which has the focus.

The index of the current item in the FocusModel which has the focus.

Attributes

Inherited from:
FocusModel

The current item in the FocusModel which has the focus.

The current item in the FocusModel which has the focus.

Attributes

Inherited from:
FocusModel
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def isFocused(row: Integer, column: TableColumn[S, _]): Boolean

Tests whether the row / cell at the given location currently has the focus within the UI control.

Tests whether the row / cell at the given location currently has the focus within the UI control.

Value parameters

column

The column of the item to give focus to. Can be null.

row

The row index of the item to give focus to.

Attributes

Returns

true whether the row / cell at the given location currently has the focus within the UI control.

Inherited from:
TableFocusModel
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: TableViewFocusModel[S]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes