Class EnumSetTableCellEditor<E extends Enum<E>>

java.lang.Object
javax.swing.AbstractCellEditor
uno.anahata.asi.swing.components.EnumSetTableCellEditor<E>
Type Parameters:
E - The specific enum type.
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class EnumSetTableCellEditor<E extends Enum<E>> extends AbstractCellEditor implements TableCellEditor
A generic, reusable TableCellEditor for editing sets or lists of Enum constants.

Employs EnumSetComboBox as the interactive editing component, providing a sleek dropdown with real-time multi-checkbox toggling and automatic commit upon popup closure.

Author:
anahata
See Also:
  • Field Details

    • comboBox

      private final EnumSetComboBox<E extends Enum<E>> comboBox
      The embedded multi-selection combo component.
  • Constructor Details

    • EnumSetTableCellEditor

      public EnumSetTableCellEditor(@NonNull @NonNull Class<E> enumClass, Function<E,Icon> iconProvider, Function<E,String> labelProvider)
      Constructs a new EnumSetTableCellEditor.
      Parameters:
      enumClass - The target enum class.
      iconProvider - Optional function mapping enum constants to icons.
      labelProvider - Optional function mapping enum constants to labels.
  • Method Details