eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ExternalTopView':

Home

everywhere
www.exept.de
for:
[back]

Class: ExternalTopView


Inheritance:

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

Package:
stx:libview2
Category:
Views-Basic
Version:
rev: 1.17 date: 2009/02/11 11:43:05
user: cg
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 6.1.1; WebServer 1.620 at exept:8081; Thu, 09 Feb 2012 02:58:38 GMT