Top Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class TreeTableViewBehavior<T>

extends TableViewBehaviorBase<TreeTableView<T>, TreeItem<T>, TreeTableColumn<T, ?>>
Class Inheritance
Static Imports
javafx.scene.input.KeyCode.*

Field Summary

Modifier and TypeField and Description
private final ChangeListener<TreeTableView.TreeTableViewSelectionModel<T>>
selectionModelListener

* Listeners * *

private final WeakChangeListener<TreeTableView.TreeTableViewSelectionModel<T>>
Inherited from com.sun.javafx.scene.control.behavior.TableViewBehaviorBase:
isShiftDownisShortcutDownselectedCellsListenerselectionChangingweakSelectedCellsListener

Constructor Summary

AccessConstructor and Description
public
TreeTableViewBehavior(TreeTableView<T> control)

* Constructors * *

Method Summary

Modifier and TypeMethod and Description
private 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.

private void
private void
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<TreeTablePosition<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<TreeItem<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<TreeTableColumn<T, ?>>
getTablePosition(int row, TableColumnBase<TreeItem<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 TreeTableColumn<S, 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<TreeTableColumn<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

private void
private void
rightArrowPressed()

The next methods handle the left/right arrow input differently depending on whether we are in row or cell selection.

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

Field Detail

selectionModelListenerback to summary
private final ChangeListener<TreeTableView.TreeTableViewSelectionModel<T>> selectionModelListener

* Listeners * *

weakSelectionModelListenerback to summary
private final WeakChangeListener<TreeTableView.TreeTableViewSelectionModel<T>> weakSelectionModelListener

Constructor Detail

TreeTableViewBehaviorback to summary
public TreeTableViewBehavior(TreeTableView<T> control)

* Constructors * *

Method Detail

collapseRowback to summary
private void collapseRow()
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
expandAllback to summary
private void expandAll()
expandRowback to summary
private void expandRow()
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<TreeTablePosition<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<TreeItem<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<TreeTableColumn<T, ?>> getTablePosition(int row, TableColumnBase<TreeItem<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 TreeTableColumn<S, 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<TreeTableColumn<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
leftArrowPressedback to summary
private void leftArrowPressed()
rightArrowPressedback to summary
private void rightArrowPressed()

The next methods handle the left/right arrow input differently depending on whether we are in row or cell selection.

selectAllToFocusback to summary
protected void selectAllToFocus(boolean setAnchorToFocusIndex)

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

Annotations
@Override