public interface DragSourceFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DRAGSOURCE |
| Modifier and Type | Method and Description |
|---|---|
DragSource |
createDragSource(String name, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
Returns the server DragSource, or
null if no DragSource should be attached. |
CharSequence |
createDragSourceBehavior(String name, DragSource dragSource, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
Returns the client DragSource initializer.
|
static final String DEFAULT_DRAGSOURCE
DragSource createDragSource(String name, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
null if no DragSource should be attached.name - refers to a named DragSource; "default" refers to the default DragSourceallowedActions - Set of DnDAction supported by the DragSource.defaultAction - Default drag and drop action supported by this drag sourcediscriminant - The discriminant for the default DataFlavors generated by this drag source.dragDropEndListener - A method reference to an event of the signature void method(DropEvent) that is invoked after the drag drop operation ends.properties - allows for additional properties in the futureCharSequence createDragSourceBehavior(String name, DragSource dragSource, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
name - refers to a named DragSource; "default" refers to the default DragSourcedragSource - DragSource to create clientDragSource initializer for.allowedActions - Set of DnDAction supported by the DragSource.defaultAction - Default drag and drop action supported by this drag sourcediscriminant - The discriminant for the default DataFlavors generated by this drag source.dragDropEndListener - A method reference to an event of the signature void method(DropEvent) that is invoked after the drag drop operation ends.properties - allows for additional properties in the future