UserInput class

This class defines a user's input into a dialog: The action button pressed, and the parameters requested by the dialog (contents of text entry fields, combo box selections, radio or check button states). Example 1D: (the first entry null or true or false is the checkbox state). {0: false, null, 1: true, Exponential, 2: null, 0.3, 3: null, 0.5, -1.0, (variable length!) 4: true, 2048} Example 2D: {0: false, null, null, 1: true, Exponential, Gaussian, 2: null, 0.3, 0.3, 3: null, 0.5, -1.0, 0.1, -1.0, 4: true, 2048, 256}

Constructors

UserInput(String _buttonCode, Map<int, List<String>> fields, BaseDialog dia)
Creates a UserInput from: _buttonCode of the pressed dialog button, fields the user input ordered per input line of the dialog. The Map keys count the dialog lines, starting at 0. The Map values provide the user input for each line: List item 0: The radio/check button state: null=no such button, "true" or "false" if checked or not checked. List items 1,2,.. : (variable length): represent the values of a text entry fields, auto-splitted if comma separated. Or the selected value if no text field, but a combo box. dia the dialog which delivered the input

Properties

buttonCode → String
read-only
dia BaseDialog
read / write
fields ↔ Map<int, List<String>>
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getCheckedState(int line) → String
Returns "true" or "false" or "null" (as a String!) if the check button or radio button of line >= 0 is checked, not checked, or not existing.
getUserInput(int line) → List<String>
Returns the list of user-entered values for line >= 0. Example 1D: true, Exponential (line with button and a combo box) Example 1D: null, 0.5, -1.0 (line with np button and a text field containing 2 comma-separated values) Example 2D: true, 0.5, -1.0, 0.1, 3.0 (line with a button and two text fields, each containing "0.5, -1.0" and "0.1, 3.0".
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

IX_CBUT → int
final