Class RecordDialogBuilder<R extends Record>

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.dialogs.RecordDialogBuilder<R>
Type Parameters:
R - type of the record

public class RecordDialogBuilder<R extends Record> extends Object
Builder of a dialog with one field per record component, created by Dialogues.record(Shell, String, Record). The field kind depends on the component type: int and Integer give an integer field, double and Double a double field, String a text field, Path a file field. The label of a field is the component name until label(String, String) replaces it.

The fields show the values of the given record. After OK open() returns a new record made by the canonical constructor; the given record stays the same.

Author:
Ionov Ivan