Module is.codion.swing.framework.ui
Interface EntityComponentFactory<T,C extends JComponent>
- Type Parameters:
T
- the value typeC
- the component type
- All Known Implementing Classes:
DefaultEntityComponentFactory
public interface EntityComponentFactory<T,C extends JComponent>
A factory for
ComponentValue
instances.-
Method Summary
Modifier and TypeMethodDescriptioncaption()
Provides a way to override the default attribute caption, when presenting the component to the user.componentValue
(SwingEntityEditModel editModel, T value) Provides an inputComponentValue
for editing a single attribute value for one or more entities.
-
Method Details
-
componentValue
Provides an inputComponentValue
for editing a single attribute value for one or more entities.- Parameters:
editModel
- the edit model used to create foreign key input modelsvalue
- the initial value to display- Returns:
- a new
ComponentValue
instance handling input forattribute
-