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

No comment. Sorry.

instance methods
  accept/cancel
  acceptContents
acceptOnCR:
cancelEdits

  debugging
  tempCommand

  edit view
  editView
setEditView:

  event handling
  autoScrollView:
handlesKeyboard:
keyStroke:
mouseDown:
mouseMove:
mouseUp:

  initialization
  initialize

  miscellaneous
  drawNullTextOn:
flash
handleInteraction:fromEvent:
hasUnacceptedEdits:
selectAll
wouldAcceptKeyboardFocusUponTab

  object fileIn
  convertToCurrentVersion:refStream:

  private
  updateFromParagraph

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  accept/cancel top  
 

acceptContents

The message is sent when the user hits enter or Cmd-S.
Accept the current contents and end editing.


 

acceptOnCR:


 

cancelEdits

The message is sent when the user hits enter or Cmd-L.
Cancel the current contents and end editing.


  debugging top  
 

tempCommand

Smalltalk browseAllImplementorsOf: #tempCommand


  edit view top  
 

editView


 

setEditView:


  event handling top  
 

autoScrollView:

This is kind of a hack because the PluggableTextMorph expects me to first expand the selection before auto scrolling will work.


 

handlesKeyboard:

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


 

keyStroke:

Handle a keystroke event.


 

mouseDown:

Make this TextMorph be the keyboard input focus, if it isn't already,
and repond to the text selection gesture.


 

mouseMove:

Handle a mouse move event. The default response is to let my eventHandler, if any, handle it.


 

mouseUp:

Handle a mouse up event. The default response is to let my eventHandler, if any, handle it.


  initialization top  
 

initialize


  miscellaneous top  
 

drawNullTextOn:

Just run the normal code to show selection in a window


 

flash

Do nothing.


 

handleInteraction:fromEvent:

Overridden to pass along a model to the editor for, eg, link resolution, doits, etc


 

hasUnacceptedEdits:

Set the hasUnacceptedEdits flag in my view.


 

selectAll

Tell my editor to select all the text


 

wouldAcceptKeyboardFocusUponTab

Answer whether the receiver would be a happy inheritor of keyboard focus if tab were hit in an enclosing playfield under propitious circumstances. Does not make sense for this kind of morph, which is encased in a window


  object fileIn top  
 

convertToCurrentVersion:refStream:

subclasses should implement if they wish to convert old instances to modern ones


  private top  
 

updateFromParagraph

A change has taken place in my paragraph, as a result of editing and I must be updated. If a line break causes recomposition of the current paragraph, or it the selection has entered a different paragraph, then the current editor will be released, and must be reinstalled with the resulting new paragraph, while retaining any editor state, such as selection, undo state, and current typing emphasis.


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

Not to be instantiated from the menu