Show TOC

Object documentationDrop Target Locate this document in the navigation structure

 

Defines items on the page where dragged items can be dropped off. This component works together with dropSource component which items can be dragged. Use the addFlavour method to add additional flavours.

  • flavours

    Flavours are used to define which dragSources are allowed for this dropTarget. Drag-and-Drop is only possible if the dragSource contains at least one flavour of the dropTarget.

  • id

    Identification name of the drapTarget.

  • onDrop

    Specifies then event handling method that is called when the user drops of the dragged object. If this method is not specified and not defined an exception is raised when the object is dropped.

  • value

    Sets the value of the dropTarget. The value can be recovered with the DropEvent object.

  • width

    Sets the width of the dragSource container.

Attributes

M

Values

Usage

flavours

String

Taglib

flavours="F1"

Classlib

setFlavour (F1)

id

*

String (cs)

Taglib

id="dropTarget"

Classlib

setId ("dropTarget")

value

String

Taglib

value="valueOfTarget"

Classlib

setValue ("valueOfTarget")

width

Unit

Taglib

No tag available

Classlib

setWidth ("100")

Events

M

Values

Usage

onDrop

String (cs)

Taglib

onDrop="onDropTarget"

Classlib

setOnDrop("onDropTarget")

Example

using the taglib

Syntax Syntax

  1.   <hbj:dropTarget 
        id="dropTarget"
        flavours="F1"
        onDrop="onDropProcessTarget"
        value="aValue"
        />
    
End of the code.
Result

This graphic is explained in the accompanying text.