ConfirmDialog class
A modal dialog to confirm a decision. This is just an InputDialog without text input fields, but one or more action buttons.
- Inheritance
- Object
- BaseDialog
- InputDialog
- ConfirmDialog
Constructors
-
ConfirmDialog(String htmlTitleText, List<
String> buttonLabels, BaseDialogCloseCallback closeCallback) -
Creates and shows a modal dialog with:
htmlTitleText
= the dialog headerbuttonLabels
= the labels of the action buttons at the bottom of thecloseCallback
= called when an action button is pressed (may be null) -
ConfirmDialog.noModal(String htmlTitleText, List<
String> buttonLabels, BaseDialogCloseCallback closeCallback) - Creates and shows a non-modal (non-blocking) dialog. See ConfirmDialog for the arguments.
Properties
-
actButs
↔ List<
ActButton> -
read / write, inherited
- closeCallback ↔ BaseDialogCloseCallback
-
read / write, inherited
- dia ↔ DivElement
-
read / write, inherited
- diaContainer ↔ DivElement
-
read / write, inherited
- diaTable ↔ TableElement
-
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isModal ↔ bool
-
read / write, inherited
- isopen ↔ bool
-
read / write, inherited
- popup ↔ PopupMenu
-
read / write, inherited
- RADIOGROUP1 → String
-
final, inherited
- redcross_left ↔ bool
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
close(
UserInput userInput) → void -
Closes the dialog.
userInput
is passed on to closeCallback if a non-null callback is defined. ifuserInput
is null, a non-null one is generated, with an empty String a button code.inherited -
createShowDia(
) → void -
Performs the dialog creation and display logic.
inherited
-
init(
String buttontype, String htmlTitleText, List< String> inputTextLabelInfo, Map<int, List< comboInfoND, Map<List< >String> >int, List< defaultInputTextsND, List<String> >int> sizes, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels) → dynamic -
Creates and displays a dialog.
See InputDialog and InputDialog.twoD for the arguments.
inherited
-
isOpen(
) → bool -
Returns true if the dialog is open.
inherited
-
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
-
show(
String htmlTitleText, 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.
override