public class TableViewBehavior<T> extends TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
isShiftDown, isShortcutDown, selectedCellsListener, selectionChanging, TABLE_VIEW_BINDINGS, weakSelectedCellsListener
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
TableViewBehavior(TableView<T> control)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called by a Skin when the Skin is disposed.
|
protected void |
editCell(int row,
TableColumnBase tc)
Begins the edit process in the underlying control for the given row/column
position.
|
protected TablePositionBase |
getFocusedCell()
Returns the focused cell from the focus model of the underlying control.
|
protected TableFocusModel |
getFocusModel()
Returns the focus model for the underlying UI control (which must extend
from TableFocusModel).
|
protected int |
getItemCount()
Returns the number of items in the underlying data model.
|
protected ObservableList<TablePosition> |
getSelectedCells()
Returns an observable list of all cells that are currently selected in
the selection model of the underlying control.
|
protected TableSelectionModel<T> |
getSelectionModel()
Returns the selection model for the underlying UI control (which must extend
from TableSelectionModel).
|
protected TablePositionBase<TableColumn<T,?>> |
getTablePosition(int row,
TableColumnBase<T,?> tc)
Creates a TablePositionBase instance using the underlying controls
concrete implementation for the given row/column intersection.
|
protected TableColumn<T,?> |
getVisibleLeafColumn(int index)
Returns the column at the given index in the visible leaf columns list of
the underlying control.
|
protected ObservableList<TableColumn<T,?>> |
getVisibleLeafColumns()
Returns an observable list of all visible leaf columns in the underlying
control.
|
protected int |
getVisibleLeafIndex(TableColumnBase tc)
Returns the position of the given table column in the visible leaf columns
list of the underlying control.
|
protected void |
selectAllToFocus(boolean setAnchorToFocusIndex) |
activate, alsoSelectLeftCell, alsoSelectNext, alsoSelectPrevious, alsoSelectRightCell, callAction, callActionForEvent, cancelEdit, clearSelection, clearSelectionOutsideRange, discontinuousSelectAllToFirstRow, discontinuousSelectAllToLastRow, discontinuousSelectNextColumn, discontinuousSelectNextRow, discontinuousSelectPageDown, discontinuousSelectPageUp, discontinuousSelectPreviousColumn, discontinuousSelectPreviousRow, focusFirstRow, focusLastRow, focusLeftCell, focusNextRow, focusPageDown, focusPageUp, focusPreviousRow, focusRightCell, getAnchor, getColumn, getColumn, hasAnchor, isRTL, mousePressed, scrollDown, scrollUp, selectAll, selectAllPageDown, selectAllPageUp, selectAllToFirstRow, selectAllToLastRow, selectCell, selectFirstRow, selectLastRow, selectLeftCell, selectNextRow, selectPreviousRow, selectRightCell, setAnchor, setAnchor, setOnFocusNextRow, setOnFocusPreviousRow, setOnMoveToFirstCell, setOnMoveToLastCell, setOnScrollPageDown, setOnScrollPageUp, setOnSelectLeftCell, setOnSelectNextRow, setOnSelectPreviousRow, setOnSelectRightCell, toggleFocusOwnerSelection, updateCellHorizontalSelection, updateCellVerticalSelection, updateRowSelection
contextMenuRequested, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
public void dispose()
BehaviorBase
dispose
in class BehaviorBase<TableView<T>>
protected int getItemCount()
getItemCount
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected TableFocusModel getFocusModel()
getFocusModel
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected TableSelectionModel<T> getSelectionModel()
getSelectionModel
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected ObservableList<TablePosition> getSelectedCells()
getSelectedCells
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected TablePositionBase getFocusedCell()
getFocusedCell
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected int getVisibleLeafIndex(TableColumnBase tc)
getVisibleLeafIndex
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected TableColumn<T,?> getVisibleLeafColumn(int index)
getVisibleLeafColumn
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected void editCell(int row, TableColumnBase tc)
editCell
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected ObservableList<TableColumn<T,?>> getVisibleLeafColumns()
getVisibleLeafColumns
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected TablePositionBase<TableColumn<T,?>> getTablePosition(int row, TableColumnBase<T,?> tc)
getTablePosition
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
protected void selectAllToFocus(boolean setAnchorToFocusIndex)
selectAllToFocus
in class TableViewBehaviorBase<TableView<T>,T,TableColumn<T,?>>
Copyright © 2020. All rights reserved.