Component identification parameters

Name | Value
--- | ---
listener-class | org.richfaces.event.DropListener
event-class | org.richfaces.event.DropEvent
tag-class | org.richfaces.taglib.DropListenerTag

## Creating the Component with a Page Tag

Simple Component definition on a page:

Example:

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

## Creating the Component Dynamically Using Java

Example:

    package demo;

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

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

## Details of Usage

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

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

The typical variant of using:

    ...
    <rich:panel style="width:100px;height:100px;">
    	<f:facet name="header">Drop Zone</f:facet>
    	<rich:dropSupport acceptedTypes="text">
    		<rich:dropListener type="demo.ListenerBean"/>
    	</rich:dropSupport>
    </rich:panel>
    ...

Java bean source:

    package demo;

    import org.richfaces.event.DropEvent;

    public class ListenerBean implements org.richfaces.event.DropListener{
    ...
    	public void processDrop(DropEvent arg0){
    		//Custom Developer Code
    	}
    ...
    }

## Look-and-Feel Customization

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