eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ExtendedComboBox::MenuWrapper':

Home

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

Class: MenuWrapper (private in ExtendedComboBox

This class is only visible from within ExtendedComboBox.

Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TopView
                  |
                  +--PopUpView
                     |
                     +--ExtendedComboBox::MenuWrapper

Package:
stx:libwidg2
Category:
Views-Interactors
Owner:
ExtendedComboBox

Description:


problem: we have a grab - and get all events;
to simulate regular behaior inside, we have to synthetically simulate
focus control and implicit grab on buttonPress.

[instance variables:]
    comboBox                <ExtendedComboBox>

    widget                  <View>          the widget which contains the menu

    lastPointerView         <View>          view which contained the
                                            mouse pointer.
                                            used for enter/leave event generation.

    implicitGrabView         <View>         view in which button was pressed;
                                            nilled when released (wherever).
                                            If non-nil, all events are forwarded to this
                                            one (for example to scroll with mouse outside the scrollbar)

    eventHandler            <OneArgBlock>   if not nil, the block will
                                            handle all inputEvents

    resizeCursor            <Cursor>        shown for resize handle

    restoreCursor           <Cursor>        default cursor


Instance protocol:

accessing
o  application
return the application, under which this view was opened,
or nil, if there is no application

o  clearImplicitGrab

o  computePreferredExtent
compute & return the preferredExtent from the components' preferrences

o  widget
returns the widget wrapped by the menuView

event handling
o  dispatchEvent: event withFocusOn: focusViewOrNil delegate: doDelegate
dispatch the event

o  forwardEvent: ev withFocusOn: focusView
handle an event

o  setupResizeEventHandler
start resize

focus handling
o  wantsFocusWithButtonPress
views which do not like to take the keyboard focus
with buttonPress can do so by redefining this
to return false

initialization
o  for: aWidget in: aReceiver
create a wrapper for a widget and the receiver, an extented comboBox

o  hideRequest
hide request from windowGroup (i.e. via Escape key).
Can be redefined in subclasses which don't like this

o  initialize

o  level: aNumber

o  mapped
grab resources (mouse and keyboard)

queries
o  isEventAssignedToResizeArea: ev

o  raiseDeiconified
(comment from inherited method)
deiconify & bring to front

o  type

searching
o  detectViewAtX: x y: y
detect view at x@y. if no view is detected or
it is my view, nil is returned



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 08:22:44 GMT