Class TreeTableCell<S,​T>

Type Parameters:
S - The type of the TreeTableView generic type
T - The type of the item contained within the Cell.
All Implemented Interfaces:
Styleable, EventTarget, Skinnable
Direct Known Subclasses:
CheckBoxTreeTableCell, ChoiceBoxTreeTableCell, ComboBoxTreeTableCell, ProgressBarTreeTableCell, TextFieldTreeTableCell

public class TreeTableCell<S,​T>
extends IndexedCell<T>
Represents a single row/column intersection in a TreeTableView. To represent this intersection, a TreeTableCell contains an index property, as well as a tableColumn property. In addition, a TreeTableCell instance knows what TreeTableRow it exists in.

A note about selection: A TreeTableCell visually shows it is selected when two conditions are met:

  1. The TableSelectionModel.isSelected(int, TableColumnBase) method returns true for the row / column that this cell represents, and
  2. The cell selection mode property is set to true (to represent that it is allowable to select individual cells (and not just rows of cells)).
Since:
JavaFX 8.0
See Also:
TreeTableView, TreeTableColumn, Cell, IndexedCell, TreeTableRow
  • Property Details

  • Constructor Details

    • TreeTableCell

      public TreeTableCell()
      Constructs a default TreeTableCell instance with a style class of 'tree-table-cell'.
  • Method Details

    • tableColumnProperty

      public final ReadOnlyObjectProperty<TreeTableColumn<S,​T>> tableColumnProperty()
      The TreeTableColumn instance that backs this TreeTableCell.
      See Also:
      getTableColumn()
    • getTableColumn

      public final TreeTableColumn<S,​T> getTableColumn()
      Gets the value of the property tableColumn.
      Property description:
      The TreeTableColumn instance that backs this TreeTableCell.
    • getTreeTableView

      public final TreeTableView<S> getTreeTableView()
      Gets the value of the property treeTableView.
      Property description:
      The TreeTableView associated with this TreeTableCell.
    • treeTableViewProperty

      public final ReadOnlyObjectProperty<TreeTableView<S>> treeTableViewProperty()
      The TreeTableView associated with this TreeTableCell.
      See Also:
      getTreeTableView()
    • getTableRow

      public final TreeTableRow<S> getTableRow()
      Gets the value of the property tableRow.
      Returns:
      the value of the property tableRow
      Since:
      17
    • tableRowProperty

      public final ReadOnlyObjectProperty<TreeTableRow<S>> tableRowProperty()
      The TreeTableRow that this TreeTableCell currently finds itself placed within.
      See Also:
      getTableRow()
    • getTreeTableRow

      @Deprecated(since="17") public final TreeTableRow<S> getTreeTableRow()
      Deprecated.
      Use getTableRow() instead.
      Returns:
      the TreeTableRow
    • updateTreeTableView

      public final void updateTreeTableView​(TreeTableView<S> tv)
      Updates the TreeTableView associated with this TreeTableCell. This is typically only done once when the TreeTableCell is first added to the TreeTableView.

      Note: This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.

      Parameters:
      tv - the TreeTableView associated with this TreeTableCell
    • updateTableRow

      public final void updateTableRow​(TreeTableRow<S> row)
      Updates the TreeTableRow associated with this TreeTableCell.

      Note: This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.

      Parameters:
      row - the TreeTableRow associated with this TreeTableCell
      Since:
      17
    • updateTableColumn

      public final void updateTableColumn​(TreeTableColumn<S,​T> column)
      Updates the TreeTableColumn associated with this TreeTableCell.

      Note: This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.

      Parameters:
      column - the TreeTableColumn associated with this TreeTableCell
      Since:
      17
    • updateTreeTableRow

      @Deprecated(since="17") public final void updateTreeTableRow​(TreeTableRow<S> row)
      Parameters:
      row - the TreeTableRow
    • updateTreeTableColumn

      @Deprecated(since="17") public final void updateTreeTableColumn​(TreeTableColumn<S,​T> column)
      Parameters:
      column - the TreeTableColumn