Squeak Class Documentation category index | class index  
 
StringMorphEditor
  category: Morphic-Text Support
  superclass: TextMorph
  subclasses:

I am a textMorph used as a pop-up editor for StringMorphs. I present a yellow background and I go away when a CR is typed or when the user clicks elsewhere.

instance methods
  all
  drawOn:
handlesKeyboard:
keyStroke:
keyboardFocusChange:

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  all top  
 

drawOn:


 

handlesKeyboard:

Return true if the receiver wishes to handle the given keyboard event


 

keyStroke:

This is hugely inefficient, but it seems to work, and it's unlikely it will ever need
to be any more efficient -- it's only intended to edit single-line strings.


 

keyboardFocusChange:

The message is sent to a morph when its keyboard focus change. The given argument indicates that the receiver is gaining keyboard focus (versus losing) the keyboard focus. Morphs that accept keystrokes should change their appearance in some way when they are the current keyboard focus. This default implementation does nothing.


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

Not to be instantiated from the menu