Class TableViewCheckboxCellRenderer

    • Field Detail

    • Constructor Detail

      • TableViewCheckboxCellRenderer

        public TableViewCheckboxCellRenderer()
    • Method Detail

      • render

        public void render​(java.lang.Object row,
                           int rowIndex,
                           int columnIndex,
                           TableView tableView,
                           java.lang.String columnName,
                           boolean selected,
                           boolean highlighted,
                           boolean disabled)
        Description copied from interface: TableView.CellRenderer
        Prepares the renderer for layout or paint.
        Specified by:
        render in interface TableView.CellRenderer
        Parameters:
        row - The row to render, or null if called to calculate preferred height for skins that assume a fixed renderer height.
        rowIndex - The index of the row being rendered, or -1 if value is null.
        columnIndex - The index of the column being rendered.
        tableView - The host component.
        columnName - The name of the column being rendered.
        selected - If true, the row is selected.
        highlighted - If true, the row is highlighted.
        disabled - If true, the row is disabled.
      • toString

        public java.lang.String toString​(java.lang.Object row,
                                         java.lang.String columnName)
        Description copied from interface: TableView.CellRenderer
        Converts table view cell data to a string representation.
        Specified by:
        toString in interface TableView.CellRenderer
        Parameters:
        row - The row object.
        columnName - The name of the column.
        Returns:
        The cell data's string representation, or null if the data does not have a string representation.

        Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.

      • isCheckboxDisabled

        public boolean isCheckboxDisabled()
      • setCheckboxDisabled

        public void setCheckboxDisabled​(boolean checkboxDisabled)