Class CharmListCell<T>

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

    public class CharmListCell<T>
    extends ListCell<T>

    The Cell type used within CharmListView instances. CharmListView control contains a ListView instance with standard cells and header cells, both instances of CharmListCell. This class allows the developer a way to provide different visuals to each type of cell, by just overriding the updateItem method when setting their specific cell factories.

    • Constructor Detail

      • CharmListCell

        public CharmListCell()
    • Method Detail

      • updateItem

        public void updateItem​(T item,
                               boolean empty)
        Developers can override this method when specifying custom cell factories for CharmListView, like the CharmListView.cellFactoryProperty() cell factory for standard cells or the CharmListView.cellHeaderFactoryProperty() cell factory for header cells, to allow for complete customisation of the both types of cells. Note this is a more convenient way for providing cell factories for the CharmListView control than subclassing CharmListCell.
        updateItem in class Cell<T>
        item - The new item for the cell.
        empty - Whether or not this cell represents data from the list.