|
Class: CodeCompletionHelpView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--CodeCompletionHelpView
- Package:
- stx:libtool
- Category:
- Interface-Help
- Version:
- rev:
1.28
date: 2023/08/15 08:41:26
- user: cg
- file: CodeCompletionHelpView.st directory: libtool
- module: stx stc-classLibrary: libtool
used with code completion suggestions
copyrightCOPYRIGHT (c) 2013 by Claus Gittinger
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.
instance creation
-
with: aView
-
create a talking-view wrapping some other view
Usage example(s):
(ActiveHelpView with:(TextView new)) realize
(ActiveHelpView with:(TextView new)) open
(ActiveHelpView with:(Button label:'ok')) open
|
accessing
-
closeOnPointerLeave: aBoolean
-
-
editView: aView
-
my code editor view
-
withView: aView
-
set the component view
event handling
-
delayedClose
-
-
delayedDestroy
-
-
delayedUnmap
-
-
focusIn
-
(comment from inherited method)
got keyboard focus - do nothing here
-
focusOut
-
(comment from inherited method)
lost keyboard focus (via the window manager).
Nothing done here
-
handlesButtonMotion: state inView: aView
-
-
handlesButtonPress: state inView: aView
-
-
handlesButtonRelease: state inView: aView
-
-
handlesKeyPress: key inView: aView
-
-
handlesKeyRelease: key inView: aView
-
-
handlesPointerEnter: state inView: aView
-
^ true
-
handlesPointerLeave: state inView: aView
-
^ true
-
installDelayedClose
-
-
keyPress: key x: x y: y view: aView
-
close now
-
pointerEnter: state x: x y: y view: view
-
-
pointerLeave: state view: view
-
-
uninstallDelayedClose
-
initialization
-
checkForClosedOrRaisedEditor
-
Transcript showCR:editView.
-
enableDelegation
-
-
initStyle
-
setup viewStyle specifics
-
initialize
-
(comment from inherited method)
must be called if redefined
-
mapped
-
install a watcher to check for the editView being still present
-
raise
-
(comment from inherited method)
bring to front
-
realize
-
self computeShape.
-
release
-
-
unmapped
-
(comment from inherited method)
the view has been unmapped
(either by some outside action - i.e. window manager iconified me,
or due to unmapping of my parentView).
private
-
resizeToFit
-
resize myself to make the component view fit
queries
-
isPopUpView
-
return true - I am a popUp type of view (no decoration, raise-to-top)
-
wantsFocusWithButtonPress
-
DEFINITELY not, because if we do so,
the editView looses focus on click, and sends me to hell in its lost focus handling!
So I will be terminated by a buttonPress, before I get a chance to handle the buttonRelease
(in which I fire my action)
-
wantsFocusWithPointerEnter
-
DEFINITELY not, because if we do so,
the editView looses focus on entry, and sends me to hell in its lost focus handling!
So I will be terminated by a motion
|