Class TableRow<T>

  • Type Parameters:
    T - The type of the item contained within the Cell.
    All Implemented Interfaces:
    Styleable, EventTarget, Skinnable

    public class TableRow<T>
    extends IndexedCell<T>

    TableRow is an IndexedCell, but rarely needs to be used by developers creating TableView instances. The only time TableRow is likely to be encountered at all by a developer is if they wish to create a custom rowFactory that replaces an entire row of a TableView.

    More often than not, it is actually easier for a developer to customize individual cells in a row, rather than the whole row itself. To do this, you can specify a custom cellFactory on each TableColumn instance.

    Since:
    JavaFX 2.0
    See Also:
    TableView, TableColumn, TableCell, IndexedCell, Cell
    • Property Detail

      • tableView

        public final ReadOnlyObjectProperty<TableView<T>> tableViewProperty
        The TableView associated with this Cell.
        Returns:
        the TableView associated with this Cell
    • Constructor Detail

      • TableRow

        public TableRow()
        Constructs a default TableRow instance with a style class of 'table-row-cell'
    • Method Detail

      • getTableView

        public final TableView<T> getTableView()
        Gets the value of the property tableView.
        Property description:
        * Properties * *
      • tableViewProperty

        public final ReadOnlyObjectProperty<TableView<T>> tableViewProperty()
        The TableView associated with this Cell.
        Returns:
        the TableView associated with this Cell
      • updateTableView

        public final void updateTableView​(TableView<T> tv)
        Updates the TableView associated with this TableCell. This is typically only done once when the TableCell is first added to the TableView. 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 TableView