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
.focusedIndex, focusedItem
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
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)
public abstract void focusAboveCell()
public abstract void focusBelowCell()
public abstract void focusLeftCell()
public abstract void focusRightCell()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.