Liking cljdoc? Tell your friends :D

jdk.awt.dnd.DragGestureRecognizer

The DragGestureRecognizer is an abstract base class for the specification of a platform-dependent listener that can be associated with a particular Component in order to identify platform-dependent drag initiating gestures.

The appropriate DragGestureRecognizer subclass instance is obtained from the DragSource associated with a particular Component, or from the Toolkit object via its createDragGestureRecognizer() method.

Once the DragGestureRecognizer is associated with a particular Component it will register the appropriate listener interfaces on that Component in order to track the input events delivered to the Component.

Once the DragGestureRecognizer identifies a sequence of events on the Component as a drag initiating gesture, it will notify its unicast DragGestureListener by invoking its gestureRecognized() method.

When a concrete DragGestureRecognizer instance detects a drag initiating gesture on the Component it is associated with, it fires a DragGestureEvent to the DragGestureListener registered on its unicast event source for DragGestureListener events. This DragGestureListener is responsible for causing the associated DragSource to start the Drag and Drop operation (if appropriate).

The DragGestureRecognizer is an
abstract base class for the specification
of a platform-dependent listener that can be associated with a particular
Component in order to
identify platform-dependent drag initiating gestures.

The appropriate DragGestureRecognizer
subclass instance is obtained from the
DragSource associated with
a particular Component, or from the Toolkit object via its
createDragGestureRecognizer()
method.

Once the DragGestureRecognizer
is associated with a particular Component
it will register the appropriate listener interfaces on that
Component
in order to track the input events delivered to the Component.

Once the DragGestureRecognizer identifies a sequence of events
on the Component as a drag initiating gesture, it will notify
its unicast DragGestureListener by
invoking its
gestureRecognized()
method.

When a concrete DragGestureRecognizer
instance detects a drag initiating
gesture on the Component it is associated with,
it fires a DragGestureEvent to
the DragGestureListener registered on
its unicast event source for DragGestureListener
events. This DragGestureListener is responsible
for causing the associated
DragSource to start the Drag and Drop operation (if
appropriate).
raw docstring

add-drag-gesture-listenerclj

(add-drag-gesture-listener this dgl)

Register a new DragGestureListener.

dgl - the DragGestureListener to register with this DragGestureRecognizer. - java.awt.dnd.DragGestureListener

throws: java.util.TooManyListenersException - if a DragGestureListener has already been added.

Register a new DragGestureListener.

dgl - the DragGestureListener to register with this DragGestureRecognizer. - `java.awt.dnd.DragGestureListener`

throws: java.util.TooManyListenersException - if a DragGestureListener has already been added.
raw docstring

get-componentclj

(get-component this)

This method returns the Component that is to be "observed" by the DragGestureRecognizer for drag initiating gestures.

returns: The Component this DragGestureRecognizer is associated with - java.awt.Component

This method returns the Component
 that is to be "observed" by the
 DragGestureRecognizer
 for drag initiating gestures.

returns: The Component this DragGestureRecognizer
 is associated with - `java.awt.Component`
raw docstring

get-drag-sourceclj

(get-drag-source this)

This method returns the DragSource this DragGestureRecognizer will use in order to process the Drag and Drop operation.

returns: the DragSource - java.awt.dnd.DragSource

This method returns the DragSource
 this DragGestureRecognizer
 will use in order to process the Drag and Drop
 operation.

returns: the DragSource - `java.awt.dnd.DragSource`
raw docstring

get-source-actionsclj

(get-source-actions this)

This method returns an int representing the type of action(s) this Drag and Drop operation will support.

returns: the currently permitted source action(s) - int

This method returns an int representing the
 type of action(s) this Drag and Drop
 operation will support.

returns: the currently permitted source action(s) - `int`
raw docstring

get-trigger-eventclj

(get-trigger-event this)

This method returns the first event in the series of events that initiated the Drag and Drop operation.

returns: the initial event that triggered the drag gesture - java.awt.event.InputEvent

This method returns the first event in the
 series of events that initiated
 the Drag and Drop operation.

returns: the initial event that triggered the drag gesture - `java.awt.event.InputEvent`
raw docstring

remove-drag-gesture-listenerclj

(remove-drag-gesture-listener this dgl)

unregister the current DragGestureListener

dgl - the DragGestureListener to unregister from this DragGestureRecognizer - java.awt.dnd.DragGestureListener

throws: java.lang.IllegalArgumentException - if dgl is not (equal to) the currently registered DragGestureListener.

unregister the current DragGestureListener

dgl - the DragGestureListener to unregister from this DragGestureRecognizer - `java.awt.dnd.DragGestureListener`

throws: java.lang.IllegalArgumentException - if dgl is not (equal to) the currently registered DragGestureListener.
raw docstring

reset-recognizerclj

(reset-recognizer this)

Reset the Recognizer, if its currently recognizing a gesture, ignore it.

Reset the Recognizer, if its currently recognizing a gesture, ignore
it.
raw docstring

set-componentclj

(set-component this c)

set the Component that the DragGestureRecognizer is associated with

registerListeners() and unregisterListeners() are called as a side effect as appropriate.

c - The Component or null - java.awt.Component

set the Component that the DragGestureRecognizer is associated with

 registerListeners() and unregisterListeners() are called as a side
 effect as appropriate.

c - The Component or null - `java.awt.Component`
raw docstring

set-source-actionsclj

(set-source-actions this actions)

This method sets the permitted source drag action(s) for this Drag and Drop operation.

actions - the permitted source drag action(s) - int

This method sets the permitted source drag action(s)
 for this Drag and Drop operation.

actions - the permitted source drag action(s) - `int`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close