Module is.codion.swing.framework.ui
Class DefaultEntityComponentFactory<T,C extends JComponent>
java.lang.Object
is.codion.swing.framework.ui.component.DefaultEntityComponentFactory<T,C>
- Type Parameters:
T
- the attribute typeC
- the component type
- All Implemented Interfaces:
EntityComponentFactory<T,
C>
public class DefaultEntityComponentFactory<T,C extends JComponent>
extends Object
implements EntityComponentFactory<T,C>
A default
EntityComponentFactory
implementation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomponentValue
(SwingEntityEditModel editModel, T value) Provides an inputComponentValue
for editing a single attribute value for one or more entities.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.codion.swing.framework.ui.component.EntityComponentFactory
caption
-
Constructor Details
-
DefaultEntityComponentFactory
- Parameters:
attribute
- the attribute for which this factory creates aComponentValue
-
-
Method Details
-
componentValue
Description copied from interface:EntityComponentFactory
Provides an inputComponentValue
for editing a single attribute value for one or more entities.- Specified by:
componentValue
in interfaceEntityComponentFactory<T,
C extends JComponent> - 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
-
attribute
- Returns:
- the attribute
-