Show TOC

Drop TargetLocate this document in the navigation structure

Definition

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

Ev ents

M

Values

Usage

onDrop

String (cs)

Taglib

onDrop="onDropTarget"

Classlib

setOnDrop("onDropTarget")

Example

using the taglib

  <hbj:dropTarget 
    id="dropTarget" 
    flavours="F1" 
    onDrop="onDropProcessTarget" 
    value="aValue" 
    />

         

Result