Liking cljdoc? Tell your friends :D

jdk.awt.dnd.DropTarget

The DropTarget is associated with a Component when that Component wishes to accept drops during Drag and Drop operations.

Each DropTarget is associated with a FlavorMap. The default FlavorMap hereafter designates the FlavorMap returned by SystemFlavorMap.getDefaultFlavorMap().

The DropTarget is associated
with a Component when that Component
wishes
to accept drops during Drag and Drop operations.

 Each
DropTarget is associated with a FlavorMap.
The default FlavorMap hereafter designates the
FlavorMap returned by SystemFlavorMap.getDefaultFlavorMap().
raw docstring

->drop-targetclj

(->drop-target)
(->drop-target c dtl)
(->drop-target c ops dtl)
(->drop-target c ops dtl act)
(->drop-target c ops dtl act fm)

Constructor.

Creates a new DropTarget given the Component to associate itself with, an int representing the default acceptable action(s) to support, a DropTargetListener to handle event processing, a boolean indicating if the DropTarget is currently accepting drops, and a FlavorMap to use (or null for the default FlavorMap).

The Component will receive drops only if it is enabled.

c - The Component with which this DropTarget is associated - java.awt.Component ops - The default acceptable actions for this DropTarget - int dtl - The DropTargetListener for this DropTarget - java.awt.dnd.DropTargetListener act - Is the DropTarget accepting drops. - boolean fm - The FlavorMap to use, or null for the default FlavorMap - java.awt.datatransfer.FlavorMap

throws: java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true

Constructor.

Creates a new DropTarget given the Component
 to associate itself with, an int representing
 the default acceptable action(s) to
 support, a DropTargetListener
 to handle event processing, a boolean indicating
 if the DropTarget is currently accepting drops, and
 a FlavorMap to use (or null for the default FlavorMap).

 The Component will receive drops only if it is enabled.

c - The Component with which this DropTarget is associated - `java.awt.Component`
ops - The default acceptable actions for this DropTarget - `int`
dtl - The DropTargetListener for this DropTarget - `java.awt.dnd.DropTargetListener`
act - Is the DropTarget accepting drops. - `boolean`
fm - The FlavorMap to use, or null for the default FlavorMap - `java.awt.datatransfer.FlavorMap`

throws: java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
raw docstring

active?clj

(active? this)

Reports whether or not this DropTarget is currently active (ready to accept drops).

returns: true if active, false if not - boolean

Reports whether or not
 this DropTarget
 is currently active (ready to accept drops).

returns: true if active, false if not - `boolean`
raw docstring

add-drop-target-listenerclj

(add-drop-target-listener this dtl)

Adds a new DropTargetListener (UNICAST SOURCE).

dtl - The new DropTargetListener - java.awt.dnd.DropTargetListener

throws: java.util.TooManyListenersException - if a DropTargetListener is already added to this DropTarget.

Adds a new DropTargetListener (UNICAST SOURCE).

dtl - The new DropTargetListener - `java.awt.dnd.DropTargetListener`

throws: java.util.TooManyListenersException - if a DropTargetListener is already added to this DropTarget.
raw docstring

add-notifyclj

(add-notify this peer)

Notify the DropTarget that it has been associated with a Component

This method is usually called from java.awt.Component.addNotify() of the Component associated with this DropTarget to notify the DropTarget that a ComponentPeer has been associated with that Component.

Calling this method, other than to notify this DropTarget of the association of the ComponentPeer with the Component may result in a malfunction of the DnD system.

peer - The Peer of the Component we are associated with! - java.awt.peer.ComponentPeer

Notify the DropTarget that it has been associated with a Component


 This method is usually called from java.awt.Component.addNotify() of
 the Component associated with this DropTarget to notify the DropTarget
 that a ComponentPeer has been associated with that Component.

 Calling this method, other than to notify this DropTarget of the
 association of the ComponentPeer with the Component may result in
 a malfunction of the DnD system.

peer - The Peer of the Component we are associated with! - `java.awt.peer.ComponentPeer`
raw docstring

drag-enterclj

(drag-enter this dtde)

Calls dragEnter on the registered DropTargetListener and passes it the specified DropTargetDragEvent. Has no effect if this DropTarget is not active.

dtde - the DropTargetDragEvent - java.awt.dnd.DropTargetDragEvent

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null

Calls dragEnter on the registered
 DropTargetListener and passes it
 the specified DropTargetDragEvent.
 Has no effect if this DropTarget
 is not active.

dtde - the DropTargetDragEvent - `java.awt.dnd.DropTargetDragEvent`

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null
raw docstring

drag-exitclj

(drag-exit this dte)

Calls dragExit on the registered DropTargetListener and passes it the specified DropTargetEvent. Has no effect if this DropTarget is not active.

This method itself does not throw any exception for null parameter but for exceptions thrown by the respective method of the listener.

dte - the DropTargetEvent - java.awt.dnd.DropTargetEvent

Calls dragExit on the registered
 DropTargetListener and passes it
 the specified DropTargetEvent.
 Has no effect if this DropTarget
 is not active.

 This method itself does not throw any exception
 for null parameter but for exceptions thrown by
 the respective method of the listener.

dte - the DropTargetEvent - `java.awt.dnd.DropTargetEvent`
raw docstring

drag-overclj

(drag-over this dtde)

Calls dragOver on the registered DropTargetListener and passes it the specified DropTargetDragEvent. Has no effect if this DropTarget is not active.

dtde - the DropTargetDragEvent - java.awt.dnd.DropTargetDragEvent

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null

Calls dragOver on the registered
 DropTargetListener and passes it
 the specified DropTargetDragEvent.
 Has no effect if this DropTarget
 is not active.

dtde - the DropTargetDragEvent - `java.awt.dnd.DropTargetDragEvent`

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null
raw docstring

dropclj

(drop this dtde)

Calls drop on the registered DropTargetListener and passes it the specified DropTargetDropEvent if this DropTarget is active.

dtde - the DropTargetDropEvent - java.awt.dnd.DropTargetDropEvent

throws: java.lang.NullPointerException - if dtde is null and at least one of the following is true: this DropTarget is not active, or there is no a DropTargetListener registered.

Calls drop on the registered
 DropTargetListener and passes it
 the specified DropTargetDropEvent
 if this DropTarget is active.

dtde - the DropTargetDropEvent - `java.awt.dnd.DropTargetDropEvent`

throws: java.lang.NullPointerException - if dtde is null and at least one of the following is true: this DropTarget is not active, or there is no a DropTargetListener registered.
raw docstring

drop-action-changedclj

(drop-action-changed this dtde)

Calls dropActionChanged on the registered DropTargetListener and passes it the specified DropTargetDragEvent. Has no effect if this DropTarget is not active.

dtde - the DropTargetDragEvent - java.awt.dnd.DropTargetDragEvent

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null

Calls dropActionChanged on the registered
 DropTargetListener and passes it
 the specified DropTargetDragEvent.
 Has no effect if this DropTarget
 is not active.

dtde - the DropTargetDragEvent - `java.awt.dnd.DropTargetDragEvent`

throws: java.lang.NullPointerException - if this DropTarget is active and dtde is null
raw docstring

get-componentclj

(get-component this)

Gets the Component associated with this DropTarget.

returns: the current Component - java.awt.Component

Gets the Component associated
 with this DropTarget.

returns: the current Component - `java.awt.Component`
raw docstring

get-default-actionsclj

(get-default-actions this)

Gets an int representing the current action(s) supported by this DropTarget.

returns: the current default actions - int

Gets an int representing the
 current action(s) supported by this DropTarget.

returns: the current default actions - `int`
raw docstring

get-drop-target-contextclj

(get-drop-target-context this)

Gets the DropTargetContext associated with this DropTarget.

returns: the DropTargetContext associated with this DropTarget. - java.awt.dnd.DropTargetContext

Gets the DropTargetContext associated
 with this DropTarget.

returns: the DropTargetContext associated with this DropTarget. - `java.awt.dnd.DropTargetContext`
raw docstring

get-flavor-mapclj

(get-flavor-map this)

Gets the FlavorMap associated with this DropTarget. If no FlavorMap has been set for this DropTarget, it is associated with the default FlavorMap.

returns: the FlavorMap for this DropTarget - java.awt.datatransfer.FlavorMap

Gets the FlavorMap
 associated with this DropTarget.
 If no FlavorMap has been set for this
 DropTarget, it is associated with the default
 FlavorMap.

returns: the FlavorMap for this DropTarget - `java.awt.datatransfer.FlavorMap`
raw docstring

remove-drop-target-listenerclj

(remove-drop-target-listener this dtl)

Removes the current DropTargetListener (UNICAST SOURCE).

dtl - the DropTargetListener to deregister. - java.awt.dnd.DropTargetListener

Removes the current DropTargetListener (UNICAST SOURCE).

dtl - the DropTargetListener to deregister. - `java.awt.dnd.DropTargetListener`
raw docstring

remove-notifyclj

(remove-notify this peer)

Notify the DropTarget that it has been disassociated from a Component

This method is usually called from java.awt.Component.removeNotify() of the Component associated with this DropTarget to notify the DropTarget that a ComponentPeer has been disassociated with that Component.

Calling this method, other than to notify this DropTarget of the disassociation of the ComponentPeer from the Component may result in a malfunction of the DnD system.

peer - The Peer of the Component we are being disassociated from! - java.awt.peer.ComponentPeer

Notify the DropTarget that it has been disassociated from a Component


 This method is usually called from java.awt.Component.removeNotify() of
 the Component associated with this DropTarget to notify the DropTarget
 that a ComponentPeer has been disassociated with that Component.

 Calling this method, other than to notify this DropTarget of the
 disassociation of the ComponentPeer from the Component may result in
 a malfunction of the DnD system.

peer - The Peer of the Component we are being disassociated from! - `java.awt.peer.ComponentPeer`
raw docstring

set-activeclj

(set-active this is-active)

Sets the DropTarget active if true, inactive if false.

is-active - sets the DropTarget (in)active. - boolean

Sets the DropTarget active if true,
 inactive if false.

is-active - sets the DropTarget (in)active. - `boolean`
raw docstring

set-componentclj

(set-component this c)

Note: this interface is required to permit the safe association of a DropTarget with a Component in one of two ways, either: component.setDropTarget(droptarget); or droptarget.setComponent(component);

The Component will receive drops only if it is enabled.

c - The new Component this DropTarget is to be associated with. - java.awt.Component

Note: this interface is required to permit the safe association
 of a DropTarget with a Component in one of two ways, either:
  component.setDropTarget(droptarget);
 or  droptarget.setComponent(component);

 The Component will receive drops only if it is enabled.

c - The new Component this DropTarget is to be associated with. - `java.awt.Component`
raw docstring

set-default-actionsclj

(set-default-actions this ops)

Sets the default acceptable actions for this DropTarget

ops - the default actions - int

Sets the default acceptable actions for this DropTarget

ops - the default actions - `int`
raw docstring

set-flavor-mapclj

(set-flavor-map this fm)

Sets the FlavorMap associated with this DropTarget.

fm - the new FlavorMap, or null to associate the default FlavorMap with this DropTarget. - java.awt.datatransfer.FlavorMap

Sets the FlavorMap associated
 with this DropTarget.

fm - the new FlavorMap, or null to associate the default FlavorMap with this DropTarget. - `java.awt.datatransfer.FlavorMap`
raw docstring

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

× close