Package ch.so.agi.hop.commons.ui
Class ValueOrFieldControl.Builder
java.lang.Object
ch.so.agi.hop.commons.ui.ValueOrFieldControl.Builder
- Enclosing class:
ValueOrFieldControl
Builder settings are copied on build; instances do not share mutable configuration.
-
Method Summary
Modifier and TypeMethodDescriptionbrowseStrategy(BrowseStrategy strategy) build()editor(EditorKind editor) fieldProvider(InputFieldProvider provider) fileExtensions(String... extensions) Sets glob filters, using each glob as its display name.fileFilters(String[] extensions, String[] names) Sets matching glob and display-name arrays.Replaces the internal message row with a caller-owned status display.
-
Method Details
-
editor
-
fileExtensions
Sets glob filters, using each glob as its display name. -
fileFilters
Sets matching glob and display-name arrays. -
fieldProvider
-
browseStrategy
-
onChange
-
onStatus
Replaces the internal message row with a caller-owned status display. Invoked synchronously on the UI thread once during build with an empty string, then whenever the translated message changes. An empty string clears the status. Does not trigger onChange; callback exceptions propagate to the caller. Create the receiving controls before building this widget.- Parameters:
callback- external status handler (non-null)- Returns:
- this builder
-
build
-