Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
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
Contains configuration settings for a
EntityEditorPanel-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Boolean> Specifies whether components should indicate that the value is modified Value type: Boolean Default value: truestatic final PropertyValue<Integer> Specifies the default number of text field columns Value type: Integer Default value: 12static final PropertyValue<Boolean> Specifies whether components should transfer focus on enter Value type: Boolean Default value: truestatic final PropertyValue<Boolean> Specifies whether components should indicate the validity of their current value Value type: Boolean Default value: true -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfig()protectedConfig(EntityEditorPanel.Config<C> config) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionfinal CmodifiedIndicator(boolean modifiedIndicator) If set to true then component labels will indicate that the value is modified.final CtextFieldColumns(int textFieldColumns) Specifies the default number of text field columnsfinal CtransferFocusOnEnter(boolean transferFocusOnEnter) final CvalidIndicator(boolean validIndicator) If set to true then components will indicate whether the current value is valid.
-
Field Details
-
VALID_INDICATOR
Specifies whether components should indicate the validity of their current value- Value type: Boolean
- Default value: true
- See Also:
-
MODIFIED_INDICATOR
Specifies whether components should indicate that the value is modified- Value type: Boolean
- Default value: true
- See Also:
-
TRANSFER_FOCUS_ON_ENTER
Specifies whether components should transfer focus on enter- Value type: Boolean
- Default value: true
-
TEXT_FIELD_COLUMNS
Specifies the default number of text field columns- Value type: Integer
- Default value: 12
-
-
Constructor Details
-
Config
protected Config() -
Config
Copy constructor- Parameters:
config- the config to copy
-
-
Method Details
-
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 viaEntityEditorPanel.component(Attribute)- Parameters:
validIndicator- specifies whether components should indicate validity- Returns:
- this Config instance
- See Also:
-
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 viaEntityEditorPanel.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
Specifies the default number of text field columns- Parameters:
textFieldColumns- the default number of text field columns- Returns:
- this Config instance
- See Also:
-
transferFocusOnEnter
- Parameters:
transferFocusOnEnter- specifies whether components will transfer focus on enter- Returns:
- this Config instance
- See Also:
-