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

## Class draw2d.DropTarget

    Object
       |
       +--EventTarget
             |
             +--draw2d.DropTarget

class draw2d.DropTarget
extends EventTarget

Defined in dragdrop.js

Constructor Summary
`draw2d.DropTarget (oElement)` A target for a Draggable to be dropped.

Method Summary
`Object` | `construct(oElement )` Creates a new instance based on the given DOM element.
`Object` | `getHeight()` Returns the height of the drop target.
`Object` | `getLeft()` Returns the left coordinate of the drop target.
`Object` | `getTop()` Returns the top coordinate of the drop target.
`Object` | `getWidth()` Returns the width of the drop target.

Constructor Detail

### draw2d.DropTarget

    draw2d.DropTarget(oElement)

A target for a Draggable to be dropped.

Method Detail

### construct

    Object construct(oElement )

Creates a new instance based on the given DOM element.

Parameters:

`oElement` - The DOM element to make into a drop target.

### getHeight

    Object getHeight()

Returns the height of the drop target.

Returns:

The height of the drop target.

### getLeft

    Object getLeft()

Returns the left coordinate of the drop target.

Returns:

The left coordinate of the drop target.

### getTop

    Object getTop()

Returns the top coordinate of the drop target.

Returns:

The top coordinate of the drop target.

### getWidth

    Object getWidth()

Returns the width of the drop target.

Returns:

The width of the drop target.

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