Squeak Class Documentation category index | class index  
 
WordGamePanelMorph
  category: Morphic-Games
  superclass: BorderedMorph
  subclasses: CipherPanel CrosticPanel CrosticQuotePanel

WordGamePanelMorph provides some default support for clicking and typing in a panel with letterMorphs.

letterMorphs a collection of LetterMorphs
Useful in referring specifically to active letterMorphs
when submorphs may contain other morphs

haveTypedHere a Boolean used to determine how backspace should be handled

instance methods
  access
  letterMorphs

  defaults
  clearTyping
highlight:
isClean
keyCharacter:atIndex:nextFocus:
lostFocus
unhighlight

  events
  checkForLostFocus
handlesMouseDown:
keyStrokeEvent:letterMorph:
mouseDownEvent:letterMorph:

  menu
  addCustomMenuItems:hand:
addMenuItemsTo:hand:

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  access top  
 

letterMorphs


  defaults top  
 

clearTyping

Clear out all letters entered as a solution.


 

highlight:


 

isClean

Return true only if all cells are blank.


 

keyCharacter:atIndex:nextFocus:

Override with actual response


 

lostFocus


 

unhighlight


  events top  
 

checkForLostFocus

Determine if the user has clicked outside this panel


 

handlesMouseDown:

Absorb mouseDown so stray clicks will not pick up the panel


 

keyStrokeEvent:letterMorph:

Handle typing. Calls keyCharacter:atIndex:nextFocus: for further behavior.


 

mouseDownEvent:letterMorph:


  menu top  
 

addCustomMenuItems:hand:

Include our modest command set in the ctrl-menu


 

addMenuItemsTo:hand:

override with actual menu items


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

Return true for all classes that can be instantiated from the menu