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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    is.codion.swing.common.ui.component.value.ComponentValue<T,C>
    componentValue(A attribute, is.codion.swing.framework.model.SwingEntityEditModel editModel, T initialValue)
    Provides value input components for multiple entity update, override to supply specific ComponentValue implementations for attributes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: EntityComponentFactory
      Provides value input components for multiple entity update, override to supply specific ComponentValue implementations for attributes.
      Specified by:
      componentValue in interface EntityComponentFactory<T,A extends is.codion.framework.domain.entity.attribute.Attribute<T>,C extends JComponent>
      Parameters:
      attribute - the attribute for which to get the ComponentValue
      editModel - the edit model used to create foreign key input models
      initialValue - the initial value to display
      Returns:
      a new ComponentValue instance handling input for attribute