smart_dialogs library
Classes
-
ActButton
-
Defines an "action button" such as OK, Cancel, Yes, No, etc that can be
used in dialogs to start an action.
The button is actually a html.ButtonElement.
Use setAttr to modify attributes.
-
BaseDialog
-
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.
-
BasicTable
-
This class represents a table for displaying row/column data.
A table cell may contain html text, a clickable button or a text entry
field.
-
ConfirmDialog
-
A modal dialog to confirm a decision. This is just an InputDialog without
text input fields, but one or more action buttons.
-
DiaAttr
-
This class defines a number of attributes which are used as
defaults for the appearance or style of a dialog.
Use setAttr to modify attributes.
-
DiaUtils
-
This class provides some simple utility functions for the dialog package.
-
FileSelectionDialog
-
This class provides a dialog containing a system button from which the
system's file selection dialog can be opened.
-
IconPanel
-
A panel containing clickable icons ordered as a matrix with respective
callback functions. An icon panel is realized as a non-modal BaseDialog.
The icon panel appearance (style) is defined by the attributes of the class
DiaAttr.
-
Info
-
This class provides shortcuts to easily display some dialogs
-
InfoDialog
-
A modal dialog to display information. No buttons except for a Red Cross to
close the dialog are provided.
-
InputDialog
-
This class defines a modal or non-modal dialog for displaying text and/or
request input from a user. User input elements are consisting of multiple
rows with text labels, text input fields, check and radio buttons and
combo boxes.
The dialog appearance (style) is defined by the attributes of the class
-
This class provides a popup menu with executable menu items.
A popup is realized as a non-modal BaseDialog.
The popup appearance (style) is defined by the attributes of the class
DiaAttr.
-
TableAttr
-
This class defines of attributes which are used as
defaults for the appearance or style of a BasicTable.
Use setAttr to modify attributes.
-
UserInput
-
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
}