Package io.guise.framework.component
Interface ListSelectControl.ValueRepresentationStrategy<VV>
-
- Type Parameters:
VV
- The type of value the strategy is to represent.
- All Known Implementing Classes:
AbstractListSelectContainerControl.ComponentRepresentationStrategy
,AbstractListSelectControl.ConverterInfoModelValueRepresentationStrategy
,AbstractListSelectControl.DefaultValueRepresentationStrategy
,CardTabControl.CardRepresentationStrategy
- Enclosing interface:
- ListSelectControl<V>
public static interface ListSelectControl.ValueRepresentationStrategy<VV>
A strategy for generating components to represent list select model values.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
createComponent(ListSelectModel<VV> model, VV value, int index, boolean selected, boolean focused)
Creates a component for the given list value.
-
-
-
Method Detail
-
createComponent
Component createComponent(ListSelectModel<VV> model, VV value, int index, boolean selected, boolean focused)
Creates a component for the given list value.- Parameters:
model
- The model containing the value.value
- The value for which a component should be created.index
- The index of the value within the list, or -1 if the value is not in the list (e.g. for representing no selection).selected
-true
if the value is selected.focused
-true
if the value has the focus.- Returns:
- A new component to represent the given value.
-
-