Class AbstractComboboxDataBinding<V>

java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractComboboxDataBinding<V>
Type Parameters:
V - The type of selectable values
All Implemented Interfaces:
AbstractDataBinding<V>, AbstractSelectObjectDataBinding<V>
Direct Known Subclasses:
ComboboxDataBinding, ContainerComboboxDataBinding

public abstract class AbstractComboboxDataBinding<V> extends Object implements AbstractSelectObjectDataBinding<V>
Abstract base class for combo box data bindings with support for filtering, sorting, and validation of selectable values. Provides core functionality for binding SWT ComboViewer controls to model values.
Author:
Ionov Ivan
See Also:
  • Field Details

    • comboViewer

      protected org.eclipse.jface.viewers.ComboViewer comboViewer
      The bound combo viewer control.
    • filter

      protected Predicate<V> filter
      Filter predicate for limiting available values in the combo box. Null means no filtering is applied.
    • comparator

      protected Comparator<V> comparator
      Comparator for sorting values in the combo box. Null means no sorting is applied.
    • values

      protected List<V> values
      The list of available values for selection.
    • canBeNull

      protected BooleanSupplier canBeNull
      Supplier determining whether null values are allowed. Defaults to false (null values not allowed).
    • controlDecoration

      protected org.eclipse.jface.fieldassist.ControlDecoration controlDecoration
      Control decoration for displaying validation errors.
    • contentProvider

      protected org.eclipse.jface.viewers.IStructuredContentProvider contentProvider
      Content provider for the combo viewer. Defaults to ArrayContentProvider.
  • Constructor Details

    • AbstractComboboxDataBinding

      public AbstractComboboxDataBinding()
  • Method Details