This package contains configurations and filters for UI input fields. More...
Classes | |
| enum | FieldFilterType |
| Defines the filtering strategies for text input fields. More... | |
Functions | |
| record | FieldConfig (JTextComponent field, FieldFilterType fieldFilterType, int maxLength, Runnable action) |
| Configuration data for a validated UI text field. | |
This package contains configurations and filters for UI input fields.
| record fr.softsf.canscan.ui.field.FieldConfig | ( | JTextComponent | field, |
| FieldFilterType | fieldFilterType, | ||
| int | maxLength, | ||
| Runnable | action ) |
Configuration data for a validated UI text field.
This record encapsulates the component, its filtering strategy, length constraints, and the action to trigger upon document changes.
| field | The JTextComponent component to be configured. |
| fieldFilterType | The FieldFilterType determining the sanitization strategy. |
| maxLength | The maximum number of characters allowed for this field. |
| action | The Runnable callback to execute when the content changes. |
Compact constructor for FieldConfig.
Applies SpotBugs suppression for Swing component exposure.