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


Field Summary
 Object _ffHackDisabled
          
 Object _loc
          
 Object _mode
          
 Object _shell
          
 Object _tabIndex
          
 Object _title
          
 Object _zIndex
          
<static>  Object MODAL
          
<static>  Object MODELESS
          
   
Fields inherited from class DwtControl
parent, _data, _eventMgr, _disposed, _className, _posStyle, _hoverOverListener, _hoverOutListener
 
Constructor Summary
DwtBaseDialog (parent, className, title, zIndex, mode, loc, optionalView, optionalDragHandleId)
            Creates a new dialog container without displaying it.
 
Method Summary
 void _createHtml()
           A subclass will probably override this method
 void _disableFFhack()
          
 Object _doesContainElement(element)
          
 void _dragEnd(x, y)
          
 void _dragStart(x, y)
          
 void _duringDrag(x, y)
          
 Object _getContentDiv()
           Sets the dialog content (below the title, above the buttons).
 Object _getContentHtml()
          
 Object _getEndBorder()
          
 void _getInputFields()
          
 Object _getStartBorder()
          
 void _positionDialog(loc)
          
 Object _setModalEffect()
          
 void _undoModality(myZIndex)
          
 void addEnterListener(listener)
          
 void addKeyListeners()
          
 void addTabListener(listener)
          
 void cleanup(bPoppedUp)
           cleans up the dialog so it can be used again later
 void focus()
          
 void handleKeys(ev)
          
 void initializeDragging(dragHandleId)
          
 Object isPoppedUp()
          
 void popdown()
           Hides the dialog.
 void popup(loc)
           Makes the dialog visible, and places it.
 void removeKeyListeners()
          
 void reset()
           Sets the dialog back to its original state after being constructed, by clearing any detail message and resetting the standard button callbacks.
 void setContent(text)
           Sets the dialog content (below the title, above the buttons).
 void setTabOrder(elementIdArray)
          
 void setView(newView)
          
 Object toString()
          
<static> Object getActiveDialog()
          
 
Methods inherited from class DwtComposite
dispose, getChildren, getNumChildren, removeChildren, clear, addChild, removeChild, _update
   
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
 

Field Detail

_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

Constructor Detail

DwtBaseDialog

DwtBaseDialog(parent, className, title, zIndex, mode, loc, optionalView, optionalDragHandleId)

Method Detail

_createHtml

void _createHtml()

_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()

_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)

cleanup

void cleanup(bPoppedUp)

focus

void focus()

handleKeys

void handleKeys(ev)

initializeDragging

void initializeDragging(dragHandleId)

isPoppedUp

Object isPoppedUp()

popdown

void popdown()

popup

void popup(loc)

removeKeyListeners

void removeKeyListeners()

reset

void reset()

setContent

void setContent(text)

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