Module is.codion.swing.framework.ui
Class DefaultEntityComponentFactory<T,A extends is.codion.framework.domain.entity.attribute.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 is.codion.framework.domain.entity.attribute.Attribute<T>,C extends JComponent>
extends Object
implements EntityComponentFactory<T,A,C>
A default
EntityComponentFactory implementation.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultEntityComponentFactory
public DefaultEntityComponentFactory()
-
-
Method Details
-
componentValue
public is.codion.swing.common.ui.component.value.ComponentValue<T,C> componentValue(A attribute, is.codion.swing.framework.model.SwingEntityEditModel editModel, T initialValue) Description copied from interface:EntityComponentFactoryProvides value input components for multiple entity update, override to supply specificComponentValueimplementations for attributes.- Specified by:
componentValuein interfaceEntityComponentFactory<T,A extends is.codion.framework.domain.entity.attribute.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
-