eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DropTarget':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: DropTarget


Inheritance:

   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

Description:


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.


Related information:

    DragAndDropManager
    DropSource
    DropContext

Class protocol:

instance creation
o  receiver: aReceiver

o  receiver: aReceiver argument: anArgument

o  receiver: aReceiver argument: anArgument dropSelector: aSelector

o  receiver: aReceiver argument: anArgument dropSelector: s1 canDropSelector: s2


Instance protocol:

accessing
o  argument
returns the user defined argument; this argument is used for a drop action
with two arguments, the context and the argument

o  argument: something
set the user defined argument; this argument is used for a drop action
with two arguments, the context and the argument

o  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

o  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

o  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

o  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

o  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

o  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

o  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

o  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

o  oldDropAPI: something

o  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

o  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

o  receiver
returns the receiver to which the requests are sent: a widget or an application.

o  receiver: something
define the receiver to which the requests are sent.
The argument is a widget or an application.

actions
o  drop: aDropContext
sent, when the mouse button is released within the current widget.

o  enter: aContext
sent, when entering a widget.

o  leave: aContext
sent, when leaving a widget.

o  over: aContext
sent, whenever the mouse is moved over the widget.

instance creation
o  receiver: aReceiver argument: anArgument
set the receiver and a user defined argument

o  receiver: aReceiver argument: anArgument dropSelector: s1 canDropSelector: s2
set the receiver and a user defined argument

private
o  receiverPerform: aSelector withContext: aContext
let the receiver perform the selector

queries
o  canDrop: aDropContext
send to the receiver to ask if the context is droppable



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 03:16:12 GMT