eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'InputView':

Home

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

Class: InputView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--InputView

Package:
stx:libview2
Category:
Views-Special
Version:
rev: 1.23 date: 2016/11/04 12:39:35
user: cg
file: InputView.st directory: libview2
module: stx stc-classLibrary: libview2
Author:
Claus Gittinger

Description:


a view for input only - forwarding all events to another object.
This kind of view can be used to be laid on top of another view to catch all
input. (Interface builder)
NOTICE: the event forwarding is a leftover from times when not delegation mechanism
        existed - it will vanish - use delegates for new code.


Instance protocol:

accessing
o  eventReceiver: aView
set the view to which input events are forwarded

o  isInputOnly
return true, since this is a transparent input-only view

drag & drop
o  canDrop: aDropContext
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view

o  canDrop: aDropContext at: aPoint
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view

o  canDropObjects: aCollectionOfDropObjects
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view

o  canDropObjects: aCollectionOfDropObjects at: aPoint
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view

o  drop: aDropContext
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view

o  drop: aDropContext at: aPoint
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view

o  dropObjects: aCollectionOfDropObjects
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view

o  dropObjects: aCollectionOfDropObjects at: aPoint
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view

event handling
o  buttonMotion: state x: x y: y
redefined to forward the event to my eventReceiver

o  buttonPress: button x: x y: y
redefined to forward the event to my eventReceiver

o  buttonRelease: button x: x y: y
redefined to forward the event to my eventReceiver

o  exposeX: x y: y width: w height: h
dummy - will never be received

o  focusIn
redefined to forward the event to my eventReceiver

o  focusOut
redefined to forward the event to my eventReceiver

o  keyPress: key x: x y: y
redefined to forward the event to my eventReceiver

o  keyRelease: key x: x y: y
redefined to forward the event to my eventReceiver

o  pointerEnter: state x: x y: y
redefined to forward the event to my eventReceiver

o  pointerLeave: state
redefined to forward the event to my eventReceiver

initialization
o  initialize

redefined dummy
o  setViewBackground
dummy - inputviews have no background



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 02:44:02 GMT