APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class TableViewBehavior<T>

extends TableViewBehaviorBase<TableView<T>, T, TableColumn<T, ?>>
Class Inheritance
Imports
javafx.beans.value.ChangeListener, .WeakChangeListener, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.TableColumn, .TableColumnBase, .TableFocusModel, .TablePosition, .TablePositionBase, .TableSelectionModel, .TableView, .TableView.TableViewSelectionModel, com.sun.javafx.scene.control.skin.Utils

Field Summary

Modifier and TypeField and Description
private final ChangeListener<TableView.TableViewSelectionModel<T>>
selectionModelListener

* Listeners * *

private TwoLevelFocusBehavior
private final WeakChangeListener<TableView.TableViewSelectionModel<T>>
Inherited from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase:
isShiftDownisShortcutDownselectedCellsListenerselectionChangingweakSelectedCellsListener

Constructor Summary

AccessConstructor and Description
public
TableViewBehavior(TableView<T> control)

* Constructors * *

Method Summary

Modifier and TypeMethod and Description
public void
protected void
editCell(int row, TableColumnBase<S, T> tc)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.editCell.

Begins the edit process in the underlying control for the given row/column position.

protected TablePositionBase<TC extends TableColumnBase<S, T>>
getFocusedCell()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusedCell.

Returns the focused cell from the focus model of the underlying control.

protected TableFocusModel<T, TC extends TableColumnBase<T, ?>>
getFocusModel()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusModel.

Returns the focus model for the underlying UI control (which must extend from TableFocusModel).

protected int
getItemCount()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getItemCount.

Returns the number of items in the underlying data model.

protected ObservableList<TablePosition<S, T>>
getSelectedCells()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getSelectedCells.

Returns an observable list of all cells that are currently selected in the selection model of the underlying control.

protected TableSelectionModel<T>
getSelectionModel()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.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)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getTablePosition.

Creates a TablePositionBase instance using the underlying controls concrete implementation for the given row/column intersection.

protected TableColumn<T, ?>
getVisibleLeafColumn(int index)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumn.

Returns the column at the given index in the visible leaf columns list of the underlying control.

protected ObservableList<TableColumn<T, ?>>
getVisibleLeafColumns()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumns.

Returns an observable list of all visible leaf columns in the underlying control.

protected int
getVisibleLeafIndex(TableColumnBase<S, T> tc)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafIndex.

Returns the position of the given table column in the visible leaf columns list of the underlying control.

protected boolean
isControlEditable()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.isControlEditable.

Returns true if the control (i.e. TableView / TreeTableView) is editable

protected void
Inherited from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase:
activatealsoSelectLeftCellalsoSelectNextalsoSelectPreviousalsoSelectRightCellcancelEditclearSelectionclearSelectionOutsideRangediscontinuousSelectAllToFirstRowdiscontinuousSelectAllToLastRowdiscontinuousSelectNextColumndiscontinuousSelectNextRowdiscontinuousSelectPageDowndiscontinuousSelectPageUpdiscontinuousSelectPreviousColumndiscontinuousSelectPreviousRowfocusFirstRowfocusLastRowfocusLeftCellfocusNextRowfocusPageDownfocusPageUpfocusPreviousRowfocusRightCellgetAnchorgetColumngetColumngetInputMaphasAnchorisRTLmousePressedscrollDownscrollUpselectAllselectAllPageDownselectAllPageUpselectAllToFirstRowselectAllToLastRowselectCellselectFirstRowselectLastRowselectLeftCellselectNextRowselectPreviousRowselectRightCellsetAnchorsetAnchorsetOnFocusLeftCellsetOnFocusNextRowsetOnFocusPreviousRowsetOnFocusRightCellsetOnHorizontalUnitScrollsetOnMoveToFirstCellsetOnMoveToLastCellsetOnScrollPageDownsetOnScrollPageUpsetOnSelectLeftCellsetOnSelectNextRowsetOnSelectPreviousRowsetOnSelectRightCellsetOnVerticalUnitScrolltoggleFocusOwnerSelectionupdateCellHorizontalSelectionupdateCellVerticalSelectionupdateRowSelection

Field Detail

selectionModelListenerback to summary
private final ChangeListener<TableView.TableViewSelectionModel<T>> selectionModelListener

* Listeners * *

tlFocusback to summary
private TwoLevelFocusBehavior tlFocus
weakSelectionModelListenerback to summary
private final WeakChangeListener<TableView.TableViewSelectionModel<T>> weakSelectionModelListener

Constructor Detail

TableViewBehaviorback to summary
public TableViewBehavior(TableView<T> control)

* Constructors * *

Method Detail

disposeback to summary
public void dispose()

Overrides com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.dispose.

Annotations
@Override
editCellback to summary
protected void editCell(int row, TableColumnBase<S, T> tc)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.editCell.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.editCell.

Begins the edit process in the underlying control for the given row/column position.

Annotations
@Override
getFocusedCellback to summary
protected TablePositionBase<TC extends TableColumnBase<S, T>> getFocusedCell()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusedCell.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusedCell.

Returns the focused cell from the focus model of the underlying control.

Annotations
@Override
getFocusModelback to summary
protected TableFocusModel<T, TC extends TableColumnBase<T, ?>> getFocusModel()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusModel.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getFocusModel.

Returns the focus model for the underlying UI control (which must extend from TableFocusModel).

Annotations
@Override
getItemCountback to summary
protected int getItemCount()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getItemCount.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getItemCount.

Returns the number of items in the underlying data model.

Annotations
@Override
getSelectedCellsback to summary
protected ObservableList<TablePosition<S, T>> getSelectedCells()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getSelectedCells.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getSelectedCells.

Returns an observable list of all cells that are currently selected in the selection model of the underlying control.

Annotations
@Override
getSelectionModelback to summary
protected TableSelectionModel<T> getSelectionModel()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getSelectionModel.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getSelectionModel.

Returns the selection model for the underlying UI control (which must extend from TableSelectionModel).

Annotations
@Override
getTablePositionback to summary
protected TablePositionBase<TableColumn<T, ?>> getTablePosition(int row, TableColumnBase<T, ?> tc)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getTablePosition.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getTablePosition.

Creates a TablePositionBase instance using the underlying controls concrete implementation for the given row/column intersection.

Annotations
@Override
getVisibleLeafColumnback to summary
protected TableColumn<T, ?> getVisibleLeafColumn(int index)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumn.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumn.

Returns the column at the given index in the visible leaf columns list of the underlying control.

Annotations
@Override
getVisibleLeafColumnsback to summary
protected ObservableList<TableColumn<T, ?>> getVisibleLeafColumns()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumns.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafColumns.

Returns an observable list of all visible leaf columns in the underlying control.

Annotations
@Override
getVisibleLeafIndexback to summary
protected int getVisibleLeafIndex(TableColumnBase<S, T> tc)

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafIndex.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.getVisibleLeafIndex.

Returns the position of the given table column in the visible leaf columns list of the underlying control.

Annotations
@Override
isControlEditableback to summary
protected boolean isControlEditable()

Implements abstract com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.isControlEditable.

Doc from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.isControlEditable.

Returns true if the control (i.e. TableView / TreeTableView) is editable

Annotations
@Override
selectAllToFocusback to summary
protected void selectAllToFocus(boolean setAnchorToFocusIndex)

Overrides com.sun.javafx.scene.control.behavior.TableViewBehaviorBase.selectAllToFocus.

Annotations
@Override