Class PureEditor
java.lang.Object
com.codename1.ui.editor.PureEditor
- Direct Known Subclasses:
CodePureEditor, RichPureEditor
The pure Codename One editor backend. It owns an EditorView and translates the semantic
command / query vocabulary spoken by RichTextArea and CodeEditor (the same strings the
BrowserComponent backend understands) into operations on the pure text engine.
This base class handles the shared, plain text portion of the vocabulary. The rich text and code
feature layers subclass it (and subclass EditorView) to add styling, syntax highlighting, the
gutter, completion and diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionPureEditor(EditorHost host, String editorType) Creates a pure editor backend. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes a one way command.protected EditorViewcreateView(EditorHost host, boolean codeMode) Creates the editor view.getView()Returns the editing surface component to place in the editor container.protected booleanTrue for a code editor backend.Executes a query returning a string result.protected EditorViewview()Returns the underlying editor view.
-
Constructor Details
-
PureEditor
Creates a pure editor backend.
Parameters
-
host: the bridge to the owning editor component -
editorType:"code"or"richtext"
-
-
-
Method Details
-
createView
Creates the editor view. Subclasses override to supply a code or rich text view. -
getView
Returns the editing surface component to place in the editor container. -
view
Returns the underlying editor view. -
isCodeMode
protected boolean isCodeMode()True for a code editor backend. -
cmd
-
query
-