Package dev.turboism.sdk.ui.settings
Record Class SettingsControl.FilePath
java.lang.Object
java.lang.Record
dev.turboism.sdk.ui.settings.SettingsControl.FilePath
- All Implemented Interfaces:
SettingsControl
- Enclosing interface:
- SettingsControl
public static record SettingsControl.FilePath(String id, String label, int columns, SettingsBinding<String> binding, String browseLabel, Supplier<Optional<String>> browse)
extends Record
implements SettingsControl
Editable path with an explicit browse action; the renderer saves only on Apply/OK.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.turboism.sdk.ui.settings.SettingsControl
SettingsControl.Choice, SettingsControl.FilePath, SettingsControl.Note, SettingsControl.Option, SettingsControl.Text, SettingsControl.Toggle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinding()Returns the value of thebindingrecord component.browse()Returns the value of thebrowserecord component.Returns the value of thebrowseLabelrecord component.intcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilePath
public FilePath(String id, String label, int columns, SettingsBinding<String> binding, String browseLabel, Supplier<Optional<String>> browse) Creates an instance of aFilePathrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentcolumns- the value for thecolumnsrecord componentbinding- the value for thebindingrecord componentbrowseLabel- the value for thebrowseLabelrecord componentbrowse- the value for thebrowserecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceSettingsControl- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceSettingsControl- Returns:
- the value of the
labelrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
browseLabel
Returns the value of thebrowseLabelrecord component.- Returns:
- the value of the
browseLabelrecord component
-
browse
Returns the value of thebrowserecord component.- Returns:
- the value of the
browserecord component
-