Interface ListSelectControl<V>

Type Parameters:
V - The type of values to select.
All Superinterfaces:
Collection<V>, Component, Control, DepictedObject, Displayable, Enableable, InfoModel, InputFocusableComponent, Iterable<V>, LabelModel, List<V>, ListListenable<V>, ListSelectModel<V>, Model, com.globalmentor.model.MutableValued<V>, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, SelectControl<V>, SelectModel<V>, ValueControl<V>, com.globalmentor.model.Valued<V>, ValuedComponent<V>, ValueModel<V>
All Known Subinterfaces:
CardControl
All Known Implementing Classes:
AbstractCardPanel, AbstractListSelectContainerControl, AbstractListSelectControl, BooleanValueControlSelectControl, CardPanel, CardTabControl, ListControl, SequenceCardPanel, TabbedPanel, TabContainerControl, TabControl

public interface ListSelectControl<V> extends SelectControl<V>, ListSelectModel<V>
A control to allow selection by the user of a value from a list.
Author:
Garret Wilson
  • Method Details

    • getValueRepresentationStrategy

      ListSelectControl.ValueRepresentationStrategy<V> getValueRepresentationStrategy()
      Returns:
      The strategy used to generate a component to represent each value in the model.
    • setValueRepresentationStrategy

      void setValueRepresentationStrategy(ListSelectControl.ValueRepresentationStrategy<V> newValueRepresentationStrategy)
      Sets the strategy used to generate a component to represent each value in the model. This is a bound property
      Parameters:
      newValueRepresentationStrategy - The new strategy to create components to represent this model's values.
      Throws:
      NullPointerException - if the provided value representation strategy is null.
      See Also:
    • getComponent

      Component getComponent(V value)
      Retrieves the component for the given value.
      Parameters:
      value - The value for which a representation component should be returned.
      Returns:
      The child component representing the given value.