Module is.codion.swing.framework.ui
Class DefaultEntityComponentFactory<T,A extends Attribute<T>,C extends JComponent>
java.lang.Object
is.codion.swing.framework.ui.component.DefaultEntityComponentFactory<T,A,C>
- All Implemented Interfaces:
EntityComponentFactory<T,
A, C>
public class DefaultEntityComponentFactory<T,A extends Attribute<T>,C extends JComponent>
extends Object
implements EntityComponentFactory<T,A,C>
A default
EntityComponentFactory
implementation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomponentValue
(A attribute, SwingEntityEditModel editModel, T initialValue) Provides value input components for multiple entity update, override to supply specificComponentValue
implementations for attributes.
-
Constructor Details
-
DefaultEntityComponentFactory
public DefaultEntityComponentFactory()
-
-
Method Details
-
componentValue
public ComponentValue<T,C> componentValue(A attribute, SwingEntityEditModel editModel, T initialValue) Description copied from interface:EntityComponentFactory
Provides value input components for multiple entity update, override to supply specificComponentValue
implementations for attributes.- Specified by:
componentValue
in interfaceEntityComponentFactory<T,
A extends Attribute<T>, C extends JComponent> - 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
-