Class VersionedEnumComponent<T>

Type Parameters:
T - The enumeration type
All Implemented Interfaces:
IComponent<IValue<T>>, IEventChannel
Direct Known Subclasses:
ChartLabelLocationComponent, ChartLabelTypeComponent, ChartTypeComponent, FormCheckBoxKindComponent, FormChildrenAlignComponent, FormChildrenGroupComponent, FormPagesRepresentationComponent, GraphicalSchemePictureStyleComponent, GroupBehaviorComponent, MarkerTypeComponent, PictureSizeComponent

public abstract class VersionedEnumComponent<T> extends EnumComponent<T>
Version-aware component for managing the model that is the one possible value of some enumeration.

Make sure the model is instance of IVersionedModel

  • Constructor Details

    • VersionedEnumComponent

      public VersionedEnumComponent(IEnumParameterization parameterization)
      The constructor.
      Parameters:
      parameterization - The parametrization.
  • Method Details

    • getComboItems

      protected Collection<T> getComboItems()
      Description copied from class: AbstractDtComboSelectComponent
      Returns a collection of the model items that be available at the combo.
      Overrides:
      getComboItems in class EnumComponent<T>
      Returns:
      the collection of the objects.
    • filter

      protected abstract Collection<T> filter(Collection<T> values, Version version)
      Filters values for given version.
      Parameters:
      values - the values, cannot be null.
      version - the version, cannot be null.
      Returns:
      the filtered values.