eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XWorkstation::SelectionFetcher':

Home

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

Class: SelectionFetcher (private in XWorkstation

This class is only visible from within XWorkstation.

Inheritance:

   Object
   |
   +--XWorkstation::SelectionFetcher

Package:
stx:libview
Category:
Interface-Graphics
Owner:
XWorkstation
Author:
Stefan Vogel (stefan@zwerg)

Description:


This class is responsible for fetching the clipboard.
The X11 clipboard is implemented via asynchonous messages.

For each fetch operation an instance of this class is created.
The asynchronous messages are queued and executed in the
process that requests the clipboard.


[instance variables:]

[class variables:]


Related information:



Class protocol:

selections
o  requestSelection: selectionId type: aTargetId onDevice: aDisplay for: aDrawableId


Instance protocol:

accessing
o  drawableID

o  getSelection
convert the data in buffer to a selection

event handling
o  message: aMessage
got an asynchronous event from the display.
Save and wake up waiters

o  propertyChange: aView property: aPropertyId state: stateSymbol time: time
this is a forwarded propertyChange event from XWorkstation

o  selectionClear: aView selection: selectionId time: time
sent when another X-client has created a selection.
This is a very X-specific mechanism.

o  selectionNotify: aView selection: aSelectionID target: aTargetID property: aPropertyID requestor: requestorID time: time
this is a forwarded selectionNotify event from XWorkstation

selection actions
o  requestSelection: aSelectionId type: aTargetId onDevice: aDisplay for: aDrawableId
request the selection of type targetId.
Wait for next asynchronous message and process it,
until done

testing
o  matchesDrawableId: aDrawableId
return true, if this SelectionFetcher fetches for aDrawableId



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