eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ExternalTopView':

Home

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

Class: ExternalTopView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TopView
                  |
                  +--ExternalTopView

Package:
stx:libview2
Category:
Views-Basic
Version:
rev: 1.23 date: 2016/08/15 10:52:37
user: mawalch
file: ExternalTopView.st directory: libview2
module: stx stc-classLibrary: libview2
Author:
Claus Gittinger (cg@exept.de)

Description:


Represents a view as created by some other application.
This is a support-class to allow ST/X views to be created
inside other applications.

A simple demoApplication is found in goodies/stxInExternalWindow
(which uses Demos::PlayInAlienWindow as a startup anchor)



[instance variables:]
    none added here

[class variables:]
    none added here


Related information:



Class protocol:

accessing
o  errorPrinting: something
controls errorprinting while checking for alive connection

instance creation
o  newWithID: anAlienWindowID
create and return a new externalTopView - the windowID
as passed in must be from an alien programs view


Instance protocol:

private
o  alienViewHasBeenDestroyed

o  checkWindowStillAlive
check for a destroyed topView
(must poll, since we do not get any events from X for the alien topView)

o  checkWindowStillAliveLoop

o  startWindowClosedPollProcess

o  stopWindowClosedPollProcess

private accessing
o  setWindowID: aWindowID

queries
o  isExternalTopView
return true, if this is an external topView - always true here

redefined
o  destroyView
never destroyed by ST/X - instead, the view is under
control of the host application ...

o  open
redefined to start a watch timeout for closed windows;
this is required, since we wont get any closeRequest event for
external windows (as all of its events are handled by the alien
application)

o  unmap
redefined as a noop;
ExternalTopViews are never unmapped by ST/X - instead, the view is under
control of the host application ...

special
o  becomeParentOf: anSTXWindow
add myself to the windowGroup of anSTXWindow ...
and reparent anSTXWindow to be the (only) child of myself

o  new_becomeParentOf: anSTXWindow
add myself to the windowGroup of anSTXWindow ...
and reparent anSTXWindow to be the (only) child of myself

o  old_becomeParentOf: anSTXWindow
add myself to the windowGroup of anSTXWindow ...
and reparent anSTXWindow to be the (only) child of myself



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 12 Nov 2018 21:57:14 GMT