Info class
This class provides shortcuts to easily display some dialogs
Constructors
- Info()
Properties
- 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
-
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 Methods
-
confirm(
String htmlInfoText, List< String> buttonLabels) → Future<UserInput> - Shows a modal ConfirmDialog. See ConfirmDialog for a description of the arguments. While ConfirmDialog needs a close callback, this async method returns the user input (which consists of the pressed button since other user input can't be entered in a ConfirmDialog.
-
get(
String buttontype, String htmlTitleText, List< String> textLabels, List<List< comboInfo, List<String> >String> defaultInputTexts, List<int> widths, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels) → Future<UserInput> -
Displays a dialog with a
htmlTitleText
and with several rows of optional check buttons, radio buttons, text entry fields, combo boxes. The name "get" indicates that UserInput into the above GUI elements is returned.buttontype
- one of DiaAttr.RADIO, DiaAttr.CHECKBOX, null(=CHECKBOX)] SeeisChecked
argument for further details. [...] -
get2D(
String buttontype, String htmlTitleText, List< String> textLabels, Map<int, List< comboInfoND, Map<List< >String> >int, List< defaultInputTextsND, List<String> >int> widths, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels) → Future<UserInput> -
This method is similar to get, with the following difference: it displays
not a single, but two columns with texts, text entry fields etc.
So, the meaning of the arguments is the same as for get, except for the
following which reflect the 2D features:
comboInfoND
- acts likecomboInfo
in get, but values for the two columns must be given. Use the Map keys InputDialog.COL1 and InputDialog.COL2 for this.defaultInputTextsND
= likedefaultInputTexts
inget, but values for the two columns must be given. Use the Map keys InputDialog.COL1 and InputDialog.COL2 for this. Please refer to the exampleshowAdvancedInputDialog2D
in the fileexamples.dart
of this package. -
show(
String htmlInfoText) → Future< UserInput> -
Shows a modal InfoDialog with centered
htmlInfoText
. While InfoDialog needs a close callback, this async method returns the user input (button code DiaAttr.DIA_ACT_ABORT when the red cross is pressed).