|
Class: DropTarget
Object
|
+--DropTarget
- Package:
- stx:libview2
- Category:
- Interface-DragAndDrop
- Version:
- rev:
1.8
date: 2007/07/03 13:18:40
- user: sr
- file: DropTarget.st directory: libview2
- module: stx stc-classLibrary: libview2
- Author:
- Claus Atzkern
this class keeps the current target of the drop operation; the object respoonsible
for the widget under the current mouse position.
receiver <Object> receiver to which the requests are sent.
The widget or an application.
argument <Object> user defined argument
enterSelector <Symbol> send the first time to the drop target when entering
the widget.
leaveSelector <Symbol> send the last time to the drop target when leaving
the widget.
overSelector <Symbol> send all the time to the drop target when moveing the
mouse over the widget.
dropSelector <Symbol> send to the drop target to drop the collection of
objects.
canDropSelector <Symbol> send to the drop target to ask if the context could
be dropped.
DragAndDropManager
DropSource
DropContext
instance creation
-
receiver: aReceiver
-
-
receiver: aReceiver argument: anArgument
-
-
receiver: aReceiver argument: anArgument dropSelector: aSelector
-
-
receiver: aReceiver argument: anArgument dropSelector: s1 canDropSelector: s2
-
accessing
-
argument
-
returns the user defined argument; this argument is used for a drop action
with two arguments, the context and the argument
-
argument: something
-
set the user defined argument; this argument is used for a drop action
with two arguments, the context and the argument
-
canDropSelector
-
selector called to get a feedback if context is droppable.
the arguments to the selector are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
canDropSelector: something
-
selector called to get a feedback if context is droppable.
the arguments to the selector are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
dropSelector
-
return the selector of the message which is sent to the drop target
when the objects are to be dropped (i.e. when the mouse button is released).
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
dropSelector: something
-
specify the selector of the message which is sent to the drop target
when the objects are to be dropped (i.e. when the mouse button is released).
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
enterSelector
-
return the selector of the message which is sent to the drop target
when entering the widget for the first time.
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
enterSelector: something
-
specify the selector of the message which is sent to the drop target
when entering the widget for the first time.
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
leaveSelector
-
return the selector of the message which is sent to the drop target
when leaving the widget.
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
leaveSelector: something
-
specify the selector of the message which is sent to the drop target
when leaving the widget.
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
oldDropAPI: something
-
-
overSelector
-
send all the time to the drop target when moveing the mouse over the widget
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
overSelector: something
-
specify the selector of the message which is sent to the drop target
when the mouse is moved over the widget.
Depending on the number of arguments of the selector,
the arguments of the message are:
0 nothing
1 aDropContext
2 aDropContext and the argument
-
receiver
-
returns the receiver to which the requests are sent: a widget or an application.
-
receiver: something
-
define the receiver to which the requests are sent.
The argument is a widget or an application.
actions
-
drop: aDropContext
-
sent, when the mouse button is released within the current widget.
-
enter: aContext
-
sent, when entering a widget.
-
leave: aContext
-
sent, when leaving a widget.
-
over: aContext
-
sent, whenever the mouse is moved over the widget.
instance creation
-
receiver: aReceiver argument: anArgument
-
set the receiver and a user defined argument
-
receiver: aReceiver argument: anArgument dropSelector: s1 canDropSelector: s2
-
set the receiver and a user defined argument
private
-
receiverPerform: aSelector withContext: aContext
-
let the receiver perform the selector
queries
-
canDrop: aDropContext
-
send to the receiver to ask if the context is droppable
|