Class DwtBaseDialog
Object
|
+--DwtControl
|
+--DwtComposite
|
+--DwtBaseDialog
-
Direct Known Subclasses:
-
DwtStickyToolTip, DwtDialog
- class
DwtBaseDialog
- extends DwtComposite
This is a base class for dialogs. Given content, this class will take care of
showing, and hiding the dialog, as well as dragging it.
Content that is draggable ( classes that override _createHtml ), need to create
an element with an id of this.getHtmlElement().id + "_handle".
Dialogs always hang off the main shell since their stacking order is managed through z-index.
Defined in DwtBaseDialog.js
Author: Ross Dargahi , Conrad Damon
Constructor Summary |
DwtBaseDialog
(parent, className, title, zIndex, mode, loc, optionalView, optionalDragHandleId)
Creates a new dialog container without displaying it.
|
Methods inherited from class DwtControl |
addControlListener, removeControlListener, addDisposeListener, removeDisposeListener, addListener, notifyListeners, isListenerRegistered, removeListener, removeAllListeners, getDocument, getData, setData, isDisposed, isInitialized, getPropagationForEvent, getReturnValueForEvent, reparent, reparentHtmlElement, setHandler, clearHandler, getBounds, setBounds, getClassName, setClassName, getCursor, setCursor, getDragSource, setDragSource, getDropTarget, setDropTarget, getEnabled, setEnabled, getHtmlElement, setHtmlElementId, getX, getXW, getY, getYH, getLocation, setLocation, getScrollStyle, setScrollStyle, getW, getH, getSize, setSize, getToolTipContent, setToolTipContent, getVisible, setVisible, setVisibility, getZIndex, setZIndex, zShow, setDisplay, preventSelection, preventContextMenu, _checkState, _isInputEl, _setEventHdlrs, _setMouseEventHdlrs, _setKeyPressEventHdlr, _dndDoHover, _getDnDIcon, _setDnDIconState, _destroyDnDIcon, _isValidDragObject, _dragEnter, _dragOver, _dragHover, _dragLeave, _drop, _initCtrl, clearContent, _badDropEffect, _handleHoverOver, _handleHoverOut
|
_ffHackDisabled
Object _ffHackDisabled
_loc
Object _loc
_mode
Object _mode
_shell
Object _shell
_tabIndex
Object _tabIndex
_title
Object _title
_zIndex
Object _zIndex
MODAL
<static> Object MODAL
MODELESS
<static> Object MODELESS
DwtBaseDialog
DwtBaseDialog(parent, className, title, zIndex, mode, loc, optionalView, optionalDragHandleId)
Creates a new dialog container without displaying it. The shell must be provided.
Parameters:
parent
- parent widget (the shell)
zIndex
- z-index when the dialog is visible
Author: Ross Dargahi , Conrad Damon
_createHtml
void _createHtml()
A subclass will probably override this method
_disableFFhack
void _disableFFhack()
_doesContainElement
Object _doesContainElement(element)
_dragEnd
void _dragEnd(x, y)
_dragStart
void _dragStart(x, y)
_duringDrag
void _duringDrag(x, y)
_getContentDiv
Object _getContentDiv()
Sets the dialog content (below the title, above the buttons).
_getContentHtml
Object _getContentHtml()
_getEndBorder
Object _getEndBorder()
_getInputFields
void _getInputFields()
_getStartBorder
Object _getStartBorder()
_positionDialog
void _positionDialog(loc)
_setModalEffect
Object _setModalEffect()
_undoModality
void _undoModality(myZIndex)
addEnterListener
void addEnterListener(listener)
addKeyListeners
void addKeyListeners()
addTabListener
void addTabListener(listener)
Parameters:
listenerFunc
- -- takes an event when the tab key has been pressed for an element inside of this dialog.
cleanup
void cleanup(bPoppedUp)
cleans up the dialog so it can be used again later
focus
void focus()
handleKeys
void handleKeys(ev)
initializeDragging
void initializeDragging(dragHandleId)
isPoppedUp
Object isPoppedUp()
popdown
void popdown()
popup
void popup(loc)
Makes the dialog visible, and places it. Everything under the dialog will become veiled
if we are modal.
Parameters:
loc
- the desired location
removeKeyListeners
void removeKeyListeners()
reset
void reset()
Sets the dialog back to its original state after being constructed, by clearing any
detail message and resetting the standard button callbacks.
setContent
void setContent(text)
Sets the dialog content (below the title, above the buttons).
setTabOrder
void setTabOrder(elementIdArray)
setView
void setView(newView)
toString
Object toString()
getActiveDialog
<static> Object getActiveDialog()
Documentation generated by
JSDoc on Thu Apr 27 13:54:36 2006