Squeak Class Documentation category index | class index  
 
ModalController
  category: ST80-Framework
  superclass: Controller
  subclasses:

I am a controller that puts the poor user into a mode by not relinquishing control. However, I do pass control onto my underlings. Some underling is expected to end the mode by sending me 'close'. Watch out Larry Tesler, the mode lives on...

instance methods
  as yet unclassified
  close
controlInitialize
isControlActive
isControlWanted

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

close

This is how we leave the mode.


 

controlInitialize

Sent by Controller|startUp as part of the standard control sequence, it
provides a place in the standard control sequence for initializing the
receiver (taking into account the current state of its model and view). It
should be redefined in subclasses to perform some specific action.


 

isControlActive

Answer whether receiver wishes to continue evaluating its controlLoop
method. It is sent by Controller|controlLoop in order to determine when
the receiver's control loop should terminate, and should be redefined in
a subclass if some special condition for terminating the main control loop
is needed.


 

isControlWanted

Answer whether the cursor is inside the inset display box (see
View|insetDisplayBox) of the receiver's view. It is sent by
Controller|controlNextLevel in order to determine whether or not control
should be passed to this receiver from the Controller of the superView of
this receiver's view.


class methods
  no messages top