Component identification parameters

Name | Value
--- | ---
listener-class | org.richfaces.event.DragListener
event-class | org.richfaces.event.DragEvent
tag-class | org.richfaces.taglib.DragListenerTag

## Creating the Component with a Page Tag

Simple Component definition on a page:

Example:

    ...
    	<rich:dragListener type="demo.Bean"/>
    ...

## Creating the Component Dynamically Using Java

Example:

    package demo;

    public class ImplBean implements org.richfaces.event.DragListener{
    	...
    }

    import demo.ImplBean;
    ...
    ImplBean myDragListener = new ImplBean();
    ...

## Details of Usage

The <rich:dragListener> is used as nested tag with components like <rich:dragSupport>, <rich:tree> and <rich:treeNode>.

Attribute "type" defines the fully qualified Java class name for listener. This class should implement org.richfaces.event.DragListener interface.

The typical variant of using:

    ...
    <h:panelGrid id="dragPanel">
    	<rich:dragSupport dragType="item">
    		<rich:dragListener type="demo.ListenerBean"/>
    	</rich:dragSupport>
    	<!--Some content to be dragged-->
    </h:panelGrid>
    ...

Java bean source:

    package demo;

    import org.richfaces.event.DragEvent;

    public class ListenerBean implements org.richfaces.event.DragListener{
    ...
    	public void processDrag(DragEvent arg0){
    		//Custom Developer Code
    	}
    ...
    }

## Look-and-Feel Customization

<rich:dragListener> has no skin parameters and custom style classes, as the component isn't visual.