Interface Engine
- All Superinterfaces:
- Originator
- All Known Implementing Classes:
- EngineImpl
Main API for the text editing engine
- 
Method SummaryModifier and TypeMethodDescriptionvoidCopies the text within the interval specified by the selection control object into the clipboard.voidRemoves the text within the interval specified by the selection control object, from the buffer.voiddelete()Removes the contents of the selection in the bufferProvides the whole contents of the buffer, as a stringProvides the clipboard contentsProvides access to the selection control objectvoidInserts a string in the buffer, which replaces the contents of the selectionvoidReplaces the text within the interval specified by the selection object with the contents of the clipboard.Methods inherited from interface fr.istic.aco.editor.core.OriginatorgetMemento, setMemento
- 
Method Details- 
getSelectionSelection getSelection()Provides access to the selection control object- Returns:
- the selection object
 
- 
getBufferContentsString getBufferContents()Provides the whole contents of the buffer, as a string- Returns:
- a copy of the buffer's contents
 
- 
getClipboardContentsString getClipboardContents()Provides the clipboard contents- Returns:
- a copy of the clipboard's contents
 
- 
cutSelectedTextvoid cutSelectedText()Removes the text within the interval specified by the selection control object, from the buffer.
- 
copySelectedTextvoid copySelectedText()Copies the text within the interval specified by the selection control object into the clipboard.
- 
pasteClipboardvoid pasteClipboard()Replaces the text within the interval specified by the selection object with the contents of the clipboard.
- 
insertInserts a string in the buffer, which replaces the contents of the selection- Parameters:
- s- the text to insert
 
- 
deletevoid delete()Removes the contents of the selection in the buffer
 
-