APIdia Launch Partner
Top Description Constructors Methods
javafx.scene.control

public abstract Class TableFocusModel<T, TC extends TableColumnBase<T, ?>>

extends FocusModel<T>
Class Inheritance
Known Direct Subclasses
javafx.scene.control.TableView.TableViewFocusModel, javafx.scene.control.TreeTableView.TreeTableViewFocusModel
Type Parameters
<T>
The type of the underlying data model for the UI control.
<TC>
The concrete subclass of TableColumnBase that is used by the underlying UI control (e.g. TableColumn or TreeTableColumn.

The abstract base class for FocusModel implementations that are used within table-like controls (most notably TableView and TreeTableView).
Since
JavaFX 8.0

Constructor Summary

AccessConstructor and Description
public
TableFocusModel()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public abstract void
focus(int
The row index of the item to give focus to.
row
,
TC
The column of the item to give focus to. Can be null.
column
)

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

public abstract void
focusAboveCell()

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

public abstract void
focusBelowCell()

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

public abstract void
focusLeftCell()

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

public abstract void
focusRightCell()

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

public abstract boolean

Returns:

true if the row / cell at the given location currently has the focus within the UI control
isFocused
(int
the row
row
,
TC
the column
column
)

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

Inherited from javafx.scene.control.FocusModel:
focusfocusedIndexPropertyfocusedItemPropertyfocusNextfocusPreviousgetFocusedIndexgetFocusedItemgetItemCountgetModelItemisFocusedsetFocusedIndexsetFocusedItem

Constructor Detail

TableFocusModelback to summary
public TableFocusModel()

Constructor for subclasses to call.

Method Detail

focusback to summary
public abstract void focus(int row, TC column)

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

Parameters
row:int

The row index of the item to give focus to.

column:TC

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

focusAboveCellback to summary
public abstract void focusAboveCell()

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

focusBelowCellback to summary
public abstract void focusBelowCell()

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

focusLeftCellback to summary
public abstract void focusLeftCell()

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

focusRightCellback to summary
public abstract void focusRightCell()

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

isFocusedback to summary
public abstract boolean isFocused(int row, TC column)

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

Parameters
row:int

the row

column:TC

the column

Returns:boolean

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