Package fi.evolver.script
Record Class Dialog.DialogTextField
java.lang.Object
java.lang.Record
fi.evolver.script.Dialog.DialogTextField
- All Implemented Interfaces:
Dialog.DialogEntry
- Enclosing class:
Dialog
public static record Dialog.DialogTextField(String label, String defaultValue, int rows, int columns, boolean isPassword)
extends Record
implements Dialog.DialogEntry
-
Constructor Summary
ConstructorsConstructorDescriptionDialogTextField(String label, String defaultValue, int rows, int columns, boolean isPassword) Creates an instance of aDialogTextFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Returns the value of thecolumnsrecord component.Returns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisPasswordrecord component.label()Returns the value of thelabelrecord component.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialogTextField
public DialogTextField(String label, String defaultValue, int rows, int columns, boolean isPassword) Creates an instance of aDialogTextFieldrecord class.- Parameters:
label- the value for thelabelrecord componentdefaultValue- the value for thedefaultValuerecord componentrows- the value for therowsrecord componentcolumns- the value for thecolumnsrecord componentisPassword- the value for theisPasswordrecord 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 '=='. -
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceDialog.DialogEntry- Returns:
- the value of the
labelrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
isPassword
public boolean isPassword()Returns the value of theisPasswordrecord component.- Returns:
- the value of the
isPasswordrecord component
-