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
.public abstract class TableFocusModel<T,TC extends TableColumnBase<T,?>> extends FocusModel<T>
TableView
and TreeTableView
.focusedIndexProperty, focusedItemProperty
Constructor and Description |
---|
TableFocusModel() |
Modifier and Type | Method and Description |
---|---|
abstract void |
focus(int row,
TC column)
Causes the item at the given index to receive the focus.
|
abstract void |
focusAboveCell()
Attempts to move focus to the cell above the currently focused cell.
|
abstract void |
focusBelowCell()
Attempts to move focus to the cell below the currently focused cell.
|
abstract void |
focusLeftCell()
Attempts to move focus to the cell to the left of the currently focused cell.
|
abstract void |
focusRightCell()
Attempts to move focus to the cell to the right of the the currently focused cell.
|
abstract boolean |
isFocused(int row,
TC column)
Tests whether the row / cell at the given location currently has the
focus within the UI control.
|
focus, focusedIndexProperty, focusedItemProperty, focusNext, focusPrevious, getFocusedIndex, getFocusedItem, getItemCount, getModelItem, isFocused, setFocusedIndex, setFocusedItem
public abstract void focus(int row, TC column)
row
- The row index of the item to give focus to.column
- The column of the item to give focus to. Can be null.public abstract boolean isFocused(int row, TC column)
row
- the rowcolumn
- the columnpublic abstract void focusAboveCell()
public abstract void focusBelowCell()
public abstract void focusLeftCell()
public abstract void focusRightCell()