Module javafx.controls
Package javafx.scene.control
Class TableFocusModel<T,TC extends TableColumnBase<T,?>>
- java.lang.Object
- 
- javafx.scene.control.FocusModel<T>
- 
- javafx.scene.control.TableFocusModel<T,TC>
 
 
- 
- Type Parameters:
- T- The type of the underlying data model for the UI control.
- TC- The concrete subclass of- TableColumnBasethat is used by the underlying UI control (e.g.- TableColumnor- TreeTableColumn.
 - Direct Known Subclasses:
- TableView.TableViewFocusModel,- TreeTableView.TreeTableViewFocusModel
 
 public abstract class TableFocusModel<T,TC extends TableColumnBase<T,?>> extends FocusModel<T> The abstract base class for FocusModel implementations that are used within table-like controls (most notablyTableViewandTreeTableView.- Since:
- JavaFX 8.0
 
- 
- 
Property Summary- 
Properties inherited from class javafx.scene.control.FocusModelfocusedIndex, focusedItem
 
- 
 - 
Constructor SummaryConstructors Constructor Description TableFocusModel()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidfocus(int row, TC column)Causes the item at the given index to receive the focus.abstract voidfocusAboveCell()Attempts to move focus to the cell above the currently focused cell.abstract voidfocusBelowCell()Attempts to move focus to the cell below the currently focused cell.abstract voidfocusLeftCell()Attempts to move focus to the cell to the left of the currently focused cell.abstract voidfocusRightCell()Attempts to move focus to the cell to the right of the the currently focused cell.abstract booleanisFocused(int row, TC column)Tests whether the row / cell at the given location currently has the focus within the UI control.- 
Methods inherited from class javafx.scene.control.FocusModelfocus, focusedIndexProperty, focusedItemProperty, focusNext, focusPrevious, getFocusedIndex, getFocusedItem, getItemCount, getModelItem, isFocused
 
- 
 
- 
- 
- 
Method Detail- 
focuspublic abstract void focus(int row, TC column)Causes the item at the given index to receive the focus.- Parameters:
- row- The row index of the item to give focus to.
- column- The column of the item to give focus to. Can be null.
 
 - 
isFocusedpublic 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- the row
- column- the column
- Returns:
- true if the row / cell at the given location currently has the focus within the UI control
 
 - 
focusAboveCellpublic abstract void focusAboveCell() Attempts to move focus to the cell above the currently focused cell.
 - 
focusBelowCellpublic abstract void focusBelowCell() Attempts to move focus to the cell below the currently focused cell.
 - 
focusLeftCellpublic abstract void focusLeftCell() Attempts to move focus to the cell to the left of the currently focused cell.
 - 
focusRightCellpublic abstract void focusRightCell() Attempts to move focus to the cell to the right of the the currently focused cell.
 
- 
 
-