Module is.codion.swing.framework.ui
Interface EditComponentFactory<C extends JComponent,T>
- Type Parameters:
C- the component typeT- the value type
- All Known Implementing Classes:
DefaultEditComponentFactory
public interface EditComponentFactory<C extends JComponent,T>
A factory for
ComponentValue instances.-
Method Summary
Modifier and TypeMethodDescriptioncaption(AttributeDefinition<T> attributeDefinition) Provides a way to override the default attribute caption, when presenting the component to the user.component(SwingEntityEditModel editModel) Provides an inputComponentValuefor editing a single attribute value for one or more entities.
-
Method Details
-
component
Provides an inputComponentValuefor editing a single attribute value for one or more entities.- Parameters:
editModel- the edit model used to create foreign key input models- Returns:
- a new
ComponentValueinstance
-
caption
Provides a way to override the default attribute caption, when presenting the component to the user.- Parameters:
attributeDefinition- the attribute definition- Returns:
- a caption to use when displaying the component, or an empty
Optionalfor no caption
-