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.80 date: 2022/10/11 14:19:18
user: cg
file: SubCanvas.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

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)

copyright

COPYRIGHT (c) 1998 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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
(comment from inherited method)
control the horizontal scrollBar to be either a miniScroller,
or a full scrollBar.

o  isScrollWrapper

o  makeClientViewScrollable: shouldBeScrollable

o  setClient: anApplicationModel
set the client - do NOT rebuild

o  spec

o  spec: something

o  verticalMini: aBoolean
(comment from inherited method)
control the vertical scrollBar to be either a miniScroller,
or a full scrollBar.

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
(comment from inherited method)
whenever the scrolledView changes its contents, the scroller(s) must
be updated as well

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  processEvent: anEvent
Return true, if I have eaten the event

o  realize
https://expeccoalm.exept.de/D451154

o  release
https://expeccoalm.exept.de/D451154

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 02:37:40 GMT