The data describing the dialog
ProtectedactionThe drag acction being taken (move, left, right, top, bottom, etc.)
ProtectedactionsFunctions to handle the various mouse events, returning an array [dx, dy, dw, dh] of changes to the position and size od the dialog.
ProtectedbackgroundThe background element when
ProtectedcontentThe content div element
ProtecteddialogThe dialog element node
ProtecteddraggingTrue when the dialog is being dragged or sized
ProtectedeventsEvents to add when dragging and remove when drag completes
ProtectedhThe current dialog height
ProtectedminThe maximum width of the dialog
ProtectedminThe minimum width of the dialog
ProtectedmodeWhen moving/sizing by keyboard, this gives which is being adjusted.
ProtectednodeThe node to focus when dialog closes
ProtectednoElements where clicking doesn't cause dragging
ProtectedtitleThe title element
ProtectedtxThe current x translation of the dialog
ProtectedtyThe current y translation of the dialog
ProtectedwThe current dialog width
ProtectedxThe current mouse x position
ProtectedyThe current mouse y position
StaticclassThe class name to use for the dialog, if any
StaticidAn id incremented for each instance of a dialog
StaticstyleThe style element ID for dialog styles
StaticstylesThe default styles for all dialogs
ProtectedactionHandle the enter or space key on a button icon
The action to take on enter or space
The event to check
ProtectedaHandle the "a" key for selecting all
The key event to handle
ProtectedarrowHandle the arrow keys
The key event to handle
The direction of the arrow
Add the dialog to the page and attach the event handlers
ProtectedcloseClose the dialog
Optionalevent: EventThe event that caused the closure
Implement the copy-to-clipboard action
ProtecteddragPerform a drag action (resize or move)
The action type to perform
The event causing the action
ProtectedendEnd a dragging operation
ProtectedescHandle the Escape key
The key event to handle
ProtectedgetCache the current width and height values.
ProtectedhelpDisplay the dialog help message
The DOM adaptor to use
The event that triggered the help
ProtectedhtmlCreate the HTML for the dialog layout
The data describing the dialog
The dialog node
ProtectedinCheck if an event is inside the dialog.
The event to check
True if the event is in the dialog, false if in the background
ProtectedinitCreate the stylesheet, if it hasn't already been done
The DOM adaptor to use
ProtectedKeyHandle a keydown event
The key event to handle
ProtectedmStart or stop moving the dialog via arrow keys
The key event to handle
ProtectedMouseHandle a mousedown event
The mouse event to handle
ProtectedMouseHandle a mousemove event
The mouse event to handle
ProtectedMouseHandle a mouseup event
The mouse event to handle
ProtectedselectSelect the content of the dialog for copying
ProtectedsStart or stop sizing the dialog via arrow keys
The key event to handle
ProtectedstartStart dragging for a move or resize action.
The mousedown event starting the drag
ProtectedstopStop event propagation
The event that is to be stopped
ProtectedVisibilityClose the dialog if the pages becomes hidden (e.g., moving foreward or backward in the window's history).
StaticpostCreate and display a dialog with the given args
The data describing the dialog
The dialog instance
A generic info dialog box