eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DragHandler':

Home

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

Class: DragHandler


Inheritance:

   Object
   |
   +--DragHandler
      |
      +--DragHandler::Generic
      |
      +--DragHandler::Line
      |
      +--DragHandler::Opaque
      |
      +--DragHandler::Rectangle

Package:
stx:libview2
Category:
Interface-DragAndDrop
Version:
rev: 1.28 date: 2022/07/23 15:16:50
user: cg
file: DragHandler.st directory: libview2
module: stx stc-classLibrary: libview2

Description:


this abstract class describes the protocol common to any DragHandler.
The DragAndDropManger creates one instance responsible to show the
dragging objects on the screen.

copyright

COPYRIGHT (c) 1998 by eXept Software AG / Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  startArrowDragAt: aRootViewStartPoint
creates and returns the drag handler which is responsible
for an arrow drag.

o  startGenericDrag: aTwoArgDragBlock
creates and returns the drag handler which is responsible
for a generic drag.

o  startLineDragAt: aRootViewStartPoint
creates and returns the drag handler which is responsible
for a line drag.

o  startOpaqueDrag: aTwoArgDragBlock extent: anExtent offset: anOffset
creates and returns the drag handler which is responsible
for a generic opaque drag.

o  startRectangleDragAt: aRootViewStartPoint
creates and returns the drag handler which is responsible
for a rectangle drag.

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

accessing
o  dropContext

o  dropContext: something

o  rootStartPoint

o  rootStartPoint: aPointInRootViewCoordinates
Modified (format): / 23-07-2022 / 16:30:29 / cg

o  sourceStartPoint

o  sourceStartPoint: aPointInSourceViewCoordinates
Modified (format): / 23-07-2022 / 16:30:46 / cg

o  targetView

event dropTarget
o  dropTargetWillChange
called before the drop target or widget changed,
and also when the view announces that it will change the contents
(eg. due to an autoscroll).
Restore the root view from the save-under

o  isInterestedInDropTarget
returns true, if the handler is interested in the underlying
drop target and the target should be tested to be able to drop
the objects.

protocol
o  dragTo: aRootPoint
drag to a root point

** This method must be redefined in concrete classes (subclassResponsibility) **

o  flushSaveArea

o  postDragging
after dragging; restore root view ...

** This method must be redefined in concrete classes (subclassResponsibility) **

o  preDraggingIn: aSourceWidget
called before starting the drag & drop operation

o  rereadSaveArea

o  restoreFromSaveArea
D372428 - Drag and drop: falsches Redraw

testing
o  isDragHandlerLine
default: answer false

o  isDragHandlerRectangle
default: answer false


Private classes:

    Generic
    Line
    Opaque
    Rectangle


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:19:51 GMT