Module is.codion.swing.framework.ui
Interface EntityComponentFactory<T,A extends is.codion.framework.domain.entity.attribute.Attribute<T>,C extends JComponent>
- Type Parameters:
T- the value typeA- the attribute typeC- the component type
- All Known Implementing Classes:
DefaultEntityComponentFactory
public interface EntityComponentFactory<T,A extends is.codion.framework.domain.entity.attribute.Attribute<T>,C extends JComponent>
A factory for
ComponentValue implementations.-
Method Summary
Modifier and TypeMethodDescriptioncomponentValue(A attribute, is.codion.swing.framework.model.SwingEntityEditModel editModel, T initialValue) Provides value input components for multiple entity update, override to supply specificComponentValueimplementations for attributes.
-
Method Details
-
componentValue
is.codion.swing.common.ui.component.value.ComponentValue<T,C> componentValue(A attribute, is.codion.swing.framework.model.SwingEntityEditModel editModel, T initialValue) Provides value input components for multiple entity update, override to supply specificComponentValueimplementations for attributes.- Parameters:
attribute- the attribute for which to get the ComponentValueeditModel- the edit model used to create foreign key input modelsinitialValue- the initial value to display- Returns:
- a new ComponentValue instance handling input for
attribute
-