JBoss.orgCommunity Documentation

Chapter 13. Drag and drop

13.1. <rich:dragSource>
13.1.1. Basic usage
13.1.2. Dragging an object
13.1.3. Reference data
13.2. <rich:dropTarget>
13.2.1. Basic usage
13.2.2. Handling dropped data
13.2.3. Reference data
13.2.4. Style classes
13.3. <rich:dragIndicator>
13.3.1. Basic usage
13.3.2. Styling the indicator
13.3.3. Reference data
13.3.4. Style classes

Read this chapter for details on adding drag and drop support to controls.

The <rich:dragSource> component can be added to a component to indicate it is capable of being dragged by the user. The dragged item can then be dropped into a compatible drop area, designated using the <rich:dropTarget> component.

The <rich:dropTarget> component can be added to a component so that the component can accept dragged items. The dragged items must support the <rich:dragSource> component, and be of a compatible drop type.

The <rich:dragIndicator> component defines a graphical element to display under the mouse cursor during a drag-and-drop operation.