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.

    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.
        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.
        the TableView associated with this Cell
      • createDefaultSkin

        protected Skin<?> createDefaultSkin()
        Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).
        createDefaultSkin in class Control
        new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.
      • 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.
        tv - the TableView
      • queryAccessibleAttribute

        public Object queryAccessibleAttribute​(AccessibleAttribute attribute,
                                               Object... parameters)
        This method is called by the assistive technology to request the value for an attribute.

        This method is commonly overridden by subclasses to implement attributes that are required for a specific role.
        If a particular attribute is not handled, the superclass implementation must be called.

        queryAccessibleAttribute in class Control
        attribute - the requested attribute
        parameters - optional list of parameters
        the value for the requested attribute
        See Also: