JBoss.orgCommunity Documentation

Chapter 15. Drag and drop

15.1. <rich:dragSource>
15.1.1. Basic usage
15.1.2. Dragging an object
15.1.3. Reference data
15.2. <rich:dropTarget>
15.2.1. Basic usage
15.2.2. Handling dropped data
15.2.3. Reference data
15.3. <rich:dragIndicator>
15.3.1. Basic usage
15.3.2. Styling the indicator
15.3.3. Reference data

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.