Squeak Class Documentation category index | class index  
 
UpdatingMenuItemMorph
  category: Morphic-Menus
  superclass: MenuItemMorph
  subclasses:

A menu item whose textual label and whose enablement are updatable. The wordingProvider provides the current wording, upon being being sent the wordingSelector.

The item can also dynamically update whether or not it should be enabled; to do this, give it an enablementSelector, which is also sent to the wordingProvider..

instance methods
  enablement
  enablement
enablementSelector:

  object fileIn
 

  stepping
  arrangeToStartSteppingIn:
step
stepTime

  wording
  wordingArgument:
wordingProvider:wordingSelector:

  world
  adaptToWorld:
updateContents

class methods
  no messages
 

instance methods
  enablement top  
 

enablement


 

enablementSelector:


  object fileIn top  

  stepping top  
 

arrangeToStartSteppingIn:

Start getting sent the 'step' message in aWorld. Like startSteppingIn:, but without the initial one to get started'


 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


 

stepTime

Answer the desired time between steps in milliseconds. This default implementation requests that the 'step' method be called once every second.


  wording top  
 

wordingArgument:

Set the receiver's wordingArgument as indicated


 

wordingProvider:wordingSelector:


  world top  
 

adaptToWorld:

The receiver finds itself operating in a possibly-different new world. If any of the receiver's parts are world-dependent (such as a target of a SimpleButtonMorph, etc.), then have them adapt accordingly


 

updateContents

Update the receiver's contents


class methods
  no messages top