Class EntityEditorPanel.Config<C extends EntityEditorPanel.Config<C>>

java.lang.Object
is.codion.swing.framework.ui.EntityEditorPanel.Config<C>
Direct Known Subclasses:
EntityEditPanel.Config
Enclosing class:
EntityEditorPanel

public static class EntityEditorPanel.Config<C extends EntityEditorPanel.Config<C>> extends Object
Contains configuration settings for a EntityEditorPanel
  • Field Details

    • VALID_INDICATOR

      public static final PropertyValue<Boolean> VALID_INDICATOR
      Specifies whether components should indicate the validity of their current value
      • Value type: Boolean
      • Default value: true
      See Also:
    • MODIFIED_INDICATOR

      public static final PropertyValue<Boolean> MODIFIED_INDICATOR
      Specifies whether components should indicate that the value is modified
      • Value type: Boolean
      • Default value: true
      See Also:
    • TRANSFER_FOCUS_ON_ENTER

      public static final PropertyValue<Boolean> TRANSFER_FOCUS_ON_ENTER
      Specifies whether components should transfer focus on enter
      • Value type: Boolean
      • Default value: true
    • TEXT_FIELD_COLUMNS

      public static final PropertyValue<Integer> TEXT_FIELD_COLUMNS
      Specifies the default number of text field columns
      • Value type: Integer
      • Default value: 12
  • Constructor Details

    • Config

      protected Config()
    • Config

      protected Config(EntityEditorPanel.Config<C> config)
      Copy constructor
      Parameters:
      config - the config to copy
  • Method Details

    • validIndicator

      public final C validIndicator(boolean validIndicator)
      If set to true then components will indicate whether the current value is valid. This applies to all components created by this edit component panel as well as components set via EntityEditorPanel.component(Attribute)
      Parameters:
      validIndicator - specifies whether components should indicate validity
      Returns:
      this Config instance
      See Also:
    • modifiedIndicator

      public final C modifiedIndicator(boolean modifiedIndicator)
      If set to true then component labels will indicate that the value is modified. This applies to all components created by this edit component panel as well as components set via EntityEditorPanel.component(Attribute) as long as the component has a JLabel associated with its 'labeledBy' client property.
      Parameters:
      modifiedIndicator - specifies whether components should indicate modification
      Returns:
      this Config instance
      See Also:
    • textFieldColumns

      public final C textFieldColumns(int textFieldColumns)
      Specifies the default number of text field columns
      Parameters:
      textFieldColumns - the default number of text field columns
      Returns:
      this Config instance
      See Also:
    • transferFocusOnEnter

      public final C transferFocusOnEnter(boolean transferFocusOnEnter)
      Parameters:
      transferFocusOnEnter - specifies whether components will transfer focus on enter
      Returns:
      this Config instance
      See Also: