Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.Dialog

    Object
       |
       +--draw2d.Figure
             |
             +--draw2d.Window
                   |
                   +--draw2d.Dialog

Direct Known Subclasses:
  draw2d.PropertyDialog, draw2d.AnnotationDialog, draw2d.ColorDialog, draw2d.InputDialog

class draw2d.Dialog
extends draw2d.Window

Defined in Dialog.js
Version: 0.9.14
Author: Andreas Herz

Constructor Summary
`draw2d.Dialog ( <String> title)`

Method Summary
`void` | `onCancel()` This method will be called if the user pressed the CANCEL button in buttonbar of the dialog. Subclasses can override this method to implement there own stuff. Don't forget to call the super method after you have done your stuff with `Dialog.prototype.onCancel.call(this);`
`void` | `onOk()` This method will be called if the user pressed the OK button in buttonbar of the dialog. Subclasses can override this method to implement there own stuff. Don't forget to call the super method after you have done your stuff with `Dialog.prototype.onOk.call(this);`
`void` | `onSetDocumentDirty()` Framework callback if an object has beend deleted, move, added or something else.
`void` | `setDimension( <int> w, <int> h)` Set the new dimension of the dialog.
`void` | `setFocus()` The framework call this method after dialog creation.

Methods inherited from class draw2d.Window
`hasFixedPosition, hasTitleBar, onDragstart, setCanDrag, setTitle, getMinWidth, getMinHeight, isResizeable, setBackgroundColor, setColor, setLineWidth, onSelectionChanged`

Methods inherited from class draw2d.Figure
`getProperties, getProperty, setProperty, getId, getWorkflow, getParent, getZOrder, setZOrder, setBorder, getContextMenu, onDoubleClick, onMouseEnter, onMouseLeave, setPosition, setResizeable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getWidth, getHeight, getY, getX, getAbsoluteY, getAbsoluteX, onKeyDown, getPosition, isOver, attachMoveListener, detachMoveListener`

Constructor Detail

### draw2d.Dialog

    draw2d.Dialog( <String> title)

Parameters:

`title` - The title of the window.

Version: 0.9.14
Author: Andreas Herz

Method Detail

### onCancel

    void onCancel()

This method will be called if the user pressed the CANCEL button in buttonbar of the dialog.
Subclasses can override this method to implement there own stuff.
Don't forget to call the super method after you have done your stuff with `Dialog.prototype.onCancel.call(this);`

### onOk

    void onOk()

This method will be called if the user pressed the OK button in buttonbar of the dialog.
Subclasses can override this method to implement there own stuff.
Don't forget to call the super method after you have done your stuff with `Dialog.prototype.onOk.call(this);`

### onSetDocumentDirty

    void onSetDocumentDirty()

Framework callback if an object has beend deleted, move, added or something else. Sub classes can override this method to implement there own stuff. e.g. update some UI elements in relation to the document dirty state.

### setDimension

    void setDimension( <int> w, <int> h)

Set the new dimension of the dialog.

Parameters:

`w` - new width of the window.

`h` - new height of the window.

### setFocus

    void setFocus()

The framework call this method after dialog creation. You can set the focus to your HTML input element or something else. It is always recommeded to call the super method if a sub class override this method.
Call: `draw2d.Dialog.prototype.setFocus.call(this);`

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008