Class TableViewImageCellRenderer

    • Constructor Detail

      • TableViewImageCellRenderer

        public TableViewImageCellRenderer()
    • Method Detail

      • setPreferredHeight

        public void setPreferredHeight​(int preferredHeight)
        Description copied from class: Component
        Sets the component's preferred height.
        Overrides:
        setPreferredHeight in class Component
        Parameters:
        preferredHeight - The preferred height value, or -1 to use the default value determined by the skin.
      • setPreferredSize

        public void setPreferredSize​(int preferredWidth,
                                     int preferredHeight)
        Description copied from class: Component
        Sets the component's preferred size.
        Overrides:
        setPreferredSize in class Component
        Parameters:
        preferredWidth - The preferred width value, or -1 to use the default value determined by the skin.
        preferredHeight - The preferred height value, or -1 to use the default value determined by the skin.
      • 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.