Squeak Class Documentation category index | class index  
 
PluggableTextMorph
  category: Morphic-Windows
  superclass: ScrollPane
  subclasses: AcceptableCleanTextMorph TextComponent AliceTextOutputWindow MethodMorph PluggableTextMorphWithModel WebPageMorph

No comment. Sorry.

instance methods
  accessing
  getTextSelector

  drag and drop
  acceptDroppingMorph:event:
wantsDroppedMorph:event:

  drawing
  drawOn:
wantsFrameAdornments

  editor access
  handleEdit:
scrollSelectionIntoView
scrollSelectionIntoView:
selectAll
setTextMorphToSelectAllOnMouseEnter

  genie-dispatching
  handleGesture:

  geometry
  extraScrollRange
resetExtent
scrollDeltaHeight

  initialization
  acceptOnCR:
editString:
extent:
font:
initialize
installModelIn:
on:text:accept:readSelection:menu:

  interactive error protocol
  correctFrom:to:with:
correctSelectionWithString:
deselect
nextTokenFrom:direction:
notify:at:in:
select
selectFrom:to:
selectInvisiblyFrom:to:
selectionInterval

  menu commands
  accept
again
browseChangeSetsWithSelector
browseIt
cancel
changeStyle
chooseAlignment
classCommentsContainingIt
copySelection
cut
debugIt
doIt
explain
fileItIn
find
findAgain
implementorsOfIt
inspectIt
languagePrefs
methodNamesContainingIt
methodSourceContainingIt
methodStringsContainingit
offerFontMenu
paste
pasteRecent
presentSpecialMenu
prettyPrint
prettyPrintWithColor
printIt
printerSetup
recognizeCharacters
referencesToIt
saveContentsInFile
scrollBarMenuButtonPressed:
selectionAsTiles
sendContentsToPrinter
sendersOfIt
setSearchString
spawn
tileForIt
toggleAnnotationPaneSize
translateIt
undo
verifyWordSpelling
wordDefinition
yellowButtonActivity

  model access
  eToyGetMainFont
getSelection
getText
selectionInterval:
setSelection:
setText:
setTextColor:
text

  object fileIn
 

  pane events
  handlesKeyboard:
keyStroke:
mouseEnter:
mouseLeave:

  transcript
  appendEntry
appendTextEtoy:
bsText
changeText:
replaceSelectionWith:

  unaccepted edits
  askBeforeDiscardingEdits:
canDiscardEdits
hasEditingConflicts
hasEditingConflicts:
hasUnacceptedEdits
hasUnacceptedEdits:
promptForCancel

  updating
  update:

class methods
  as yet unclassified
  on:text:accept:
on:text:accept:readSelection:menu:

instance methods
  accessing top  
 

getTextSelector


  drag and drop top  
 

acceptDroppingMorph:event:

This message is sent when a morph is dropped onto a morph that has
agreed to accept the dropped morph by responding 'true' to the
wantsDroppedMorph:Event: message. The default implementation just
adds the given morph to the receiver.


 

wantsDroppedMorph:event:

Return true if the receiver wishes to accept the given morph, which is being dropped by a hand in response to the given event. Note that for a successful drop operation both parties need to agree. The symmetric check is done automatically via aMorph wantsToBeDroppedInto: self.


  drawing top  
 

drawOn:

Include a thin red inset border for unaccepted edits, or, if the unaccepted edits are known to conflict with a change made somewhere else to the same method (typically), put a thick red frame


 

wantsFrameAdornments

Answer whether the receiver wishes to have red borders, etc., used to show editing state


  editor access top  
 

handleEdit:


 

scrollSelectionIntoView

Scroll my text into view if necessary and return true, else return false


 

scrollSelectionIntoView:

Scroll my text into view if necessary and return true, else return false


 

selectAll

Tell my textMorph's editor to select all


 

setTextMorphToSelectAllOnMouseEnter

Tell my textMorph's editor to select all when the mouse enters


  genie-dispatching top  
 

handleGesture:

Let the associated TextMorph handle the gesture.
Add handling of special gestures (scrolling, ...) here and pass control to the
TextMorph handler only if it's not already handled.


  geometry top  
 

extraScrollRange

Return the amount of extra blank space to include below the bottom of the scroll content.


 

resetExtent

Reset the extent while maintaining the current selection. Needed when resizing while the editor is active (when inside the pane).


 

scrollDeltaHeight

Return the increment in pixels which this pane should be scrolled.


  initialization top  
 

acceptOnCR:


 

editString:

Jam some text in. This is treated as clean text by default.


 

extent:


 

font:


 

initialize


 

installModelIn:

No special inits for new components


 

on:text:accept:readSelection:menu:


  interactive error protocol top  
 

correctFrom:to:with:


 

correctSelectionWithString:

I can't tell if this is a hack or if it's the right thing to do.


 

deselect


 

nextTokenFrom:direction:


 

notify:at:in:


 

select


 

selectFrom:to:


 

selectInvisiblyFrom:to:


 

selectionInterval


  menu commands top  
 

accept

Inform the model of text to be accepted, and return true if OK.


 

again


 

browseChangeSetsWithSelector

Help the user track down which change sets mention a particular selector


 

browseIt


 

cancel


 

changeStyle


 

chooseAlignment


 

classCommentsContainingIt


 

copySelection


 

cut


 

debugIt


 

doIt


 

explain


 

fileItIn


 

find


 

findAgain


 

implementorsOfIt


 

inspectIt


 

languagePrefs


 

methodNamesContainingIt


 

methodSourceContainingIt


 

methodStringsContainingit


 

offerFontMenu


 

paste


 

pasteRecent

Paste an item chosen from RecentClippings.


 

presentSpecialMenu


 

prettyPrint


 

prettyPrintWithColor


 

printIt


 

printerSetup


 

recognizeCharacters


 

referencesToIt


 

saveContentsInFile


 

scrollBarMenuButtonPressed:


 

selectionAsTiles


 

sendContentsToPrinter


 

sendersOfIt


 

setSearchString


 

spawn


 

tileForIt

Return a tile referring to the object resulting form evaluating my current selection. Not currently threaded in, but useful in earlier demos and possibly still of value.


 

toggleAnnotationPaneSize


 

translateIt


 

undo


 

verifyWordSpelling


 

wordDefinition


 

yellowButtonActivity

Called when the shifted-menu's 'more' item is chosen


  model access top  
 

eToyGetMainFont


 

getSelection

Answer the model's selection interval.


 

getText

Retrieve the current model text


 

selectionInterval:


 

setSelection:


 

setText:


 

setTextColor:

Set the color of my text to the given color


 

text


  object fileIn top  

  pane events top  
 

handlesKeyboard:

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


 

keyStroke:

A keystroke was hit while the receiver had keyboard focus. Pass the keywtroke on to my textMorph, and and also, if I have an event handler, pass it on to that handler


 

mouseEnter:

Handle a mouseEnter event, meaning the mouse just entered my bounds with no button pressed. The default response is to let my eventHandler, if any, handle it.


 

mouseLeave:

The mouse has left the area of the receiver


  transcript top  
 

appendEntry

Append the text in the model's writeStream to the editable text.


 

appendTextEtoy:

Append the text in the model's writeStream to the editable text.


 

bsText


 

changeText:

The paragraph to be edited is changed to aText.


 

replaceSelectionWith:


  unaccepted edits top  
 

askBeforeDiscardingEdits:

Set the flag that determines whether the user should be asked before discarding unaccepted edits.


 

canDiscardEdits

Return true if this view either has no text changes or does not care.


 

hasEditingConflicts

Return true if a conflicting edit to the same code (typically) is known to have occurred after the current contents started getting edited


 

hasEditingConflicts:


 

hasUnacceptedEdits

Return true if this view has unaccepted edits.


 

hasUnacceptedEdits:

Set the hasUnacceptedEdits flag to the given value.


 

promptForCancel

Ask if it is OK to cancel changes to text


  updating top  
 

update:

Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.


class methods
  as yet unclassified top  
 

on:text:accept:


 

on:text:accept:readSelection:menu: