eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SubCanvas':

Home

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

Class: SubCanvas


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--ScrollableView
               |
               +--SubCanvas

Package:
stx:libwidg2
Category:
Views-Basic
Version:
rev: 1.74 date: 2018/09/18 09:46:07
user: stefan
file: SubCanvas.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Atzkern

Description:


a view for a subApplication.

Made to be VW compatible as much as possible (try opening a RefactoringBrowser ...).
However, the default setup is not very useful to embed arbitrary applications
which are meant to be separate stand-alone applications.

Use the settings:
    keepClientView          (default: true)
    useApplicationSubView   (default: false)
    useOwnBuilder           (default: false)


Class protocol:

defaults
o  defaultHorizontalScrollable

o  defaultVerticalScrollable


Instance protocol:

accessing
o  builder

o  builder: aBuilder

o  client

o  client: anApplication spec: aWindowSpecOrSpecSymbol builder: aBuilder
release existing components and generate new components from
the given windowSpec, using the given builder.

o  clientView

o  clientViewIsScrolled

o  horizontalMini: aBoolean

o  isScrollWrapper

o  makeClientViewScrollable: shouldBeScrollable

o  setClient: anApplicationModel
set the client - do NOT rebuild

o  spec

o  spec: something

o  verticalMini: aBoolean

o  widget
ST80 compatibility.
I am my own widget

accessing-canvasView handling
o  keepClientView: aBoolean

o  useApplicationSubView: aBoolean

o  useOwnBuilder: aBoolean

accessing-channels
o  clientHolder

o  clientHolder: aValueHolder

o  clientView: aView

o  specHolder

o  specHolder: aValueHolder

o  specHolder: newSpecHolder clientHolder: newClientHolder

building
o  container: aView
my builder can only build the components, when I have a container

o  rebuild
rebuild my GUI from the spec.

o  releaseAllComponents

change & update
o  update: something with: aParameter from: changedObject

o  updateFromChannels
some of our channels (clientHolder, specHolder) changed

delegation
o  viewBackground: aColor
convenient method: forward this to the scrolledView

initialization
o  initialize
these defaults make subCanvas compatible with VW;

o  release
(comment from inherited method)
remove all dependencies from the receiver

layout
o  usedScrolledViewHMarginWhenHasV: hasV andHasH: hasH
return the horizontal margin around (outer margin).
Redefined to avoid margin when no scrollers are present

o  usedScrolledViewVMarginWhenHasV: hasV andHasH: hasH
return the horizontal margin around (outer margin).
Redefined to avoid margin when no scrollers are present

queries
o  application
return the application, under which this view was opened



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 21 Jan 2020 05:11:27 GMT