BaseDialog class
A dialog base class for modal (=blocking) and non-modal dialogs. The dialog is a container for its contents and is realized a DivElement dia. The div is directly appended to the document body for a non-modal dialog. For modal dialogs the div is appended to a "glass pane" covering the application diaContainer which is appended to the document body. The glass pane will not let pass events through if "modal". The dialog appearance (style) is defined by the attributes of the class DiaAttr. The following dialogs are derive from BaseDialog: InputDialog, FileSelectionDialog, IconPanel, PopupMenu.
- Implementers
Constructors
- BaseDialog(BaseDialogCloseCallback closeCallback)
-
Creates and shows a modal dialog with a
closeCallback
invoked when the dialogs close. The callback may be null. - BaseDialog.noModal(BaseDialogCloseCallback closeCallback)
-
Creates and shows a non-modal dialog with a
closeCallback
invoked when the dialogs close. The callback may be null.
Properties
- closeCallback ↔ BaseDialogCloseCallback
-
read / write
- dia ↔ DivElement
-
read / write
- diaContainer ↔ DivElement
-
read / write
- isModal ↔ bool
-
read / write
- isopen ↔ bool
-
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
-
close(
UserInput userInput) → void -
Closes the dialog.
userInput
is passed on to closeCallback if a non-null callback is defined. -
createShowDia(
) → void - Performs the dialog creation and display logic.
-
isOpen(
) → bool - Returns true if the dialog is open.
-
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