|
Class: ApplicationSubView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--ApplicationSubView
- Package:
- stx:libview2
- Category:
- Views-Basic
- Version:
- rev:
1.16
date: 2021/01/20 15:42:06
- user: cg
- file: ApplicationSubView.st directory: libview2
- module: stx stc-classLibrary: libview2
needed sometimes, when a full application is embeded into an ExtendedComboBox
or subcanvas AND you want to avoid, that this application accesses the outer
application's aspects (by returning a private application instance).
Notice: you may have to manually set this view's application to be the embedded app
(i.e. via #application:) unless it is set by #client:....
see self-embedding example in CodingExamples_GUI::GUIDemoExtendedComboBox
copyrightCOPYRIGHT (c) 1999 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.
accessing
-
application
-
return the value of the instance variable 'application' (automatically generated)
-
application: something
-
set the value of the instance variable 'application' (automatically generated)
-
buildMenu: aBoolean
-
if true, the main menu is also built. Default is false
-
client: anApplication spec: aWindowSpecOrSpecSymbol builder: aBuilder
-
(comment from inherited method)
release existing components and generate new components from
the given windowSpec, using the given builder.
-
client: anApplication spec: aWindowSpecOrSpecSymbol builder: aBuilder withMenu: withMenu
-
(comment from inherited method)
release existing components and generate new components from
the given windowSpec, using the given builder.
ATTENTION: this is a low level interface.
TODO: this code is so ugly and badly designed - it must be redesigned
or at least well documented.
events
-
destroy
-
(comment from inherited method)
unmap & destroy - make me invisible, destroy subviews then
make me unknown to the device
-
keyPress: key x: x y: y
-
(comment from inherited method)
a key has been pressed. If there are components,
pass it to the corresponding one.
Otherwise, forward it to the superview, if there is any.
-
preRealize
-
(comment from inherited method)
invoked right before a view is realized.
Can be redefined in subclasses to perform delayed actions.
-
realize
-
(comment from inherited method)
realize - make visible;
realizing is done very late (after layout is fixed) to avoid
visible rearranging of windows on the screen
testing
-
isApplicationSubView
-
see self-embedding example in CodingExamples_GUI::GUIDemoExtendedComboBox.
|top sub app|
top := StandardSystemView new.
sub := ApplicationSubView new.
app := FileBrowserV2 new.
app createBuilder.
app window:sub.
sub client:app.
top addSubView:sub.
sub origin:(0.1@0.1) corner:(0.9@0.9).
top open.
|
|top sub app|
top := StandardSystemView new.
sub := ApplicationSubView new.
app := Tools::NewSystemBrowser new.
app createBuilder.
app window:sub.
sub client:app.
top addSubView:sub.
sub origin:(0.1@0.1) corner:(0.9@0.9).
top open.
|
|