Interface EditorHost
- All Known Implementing Classes:
AbstractEditorComponent, CodeEditor, RichTextArea
public interface EditorHost
The bridge a pure editor view uses to reach the owning editor component and, through it, the platform
text input source. The owning
com.codename1.ui.AbstractEditorComponent implements this so the low
level implementation access (which is package private to com.codename1.ui) stays out of the editor
engine package.-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the owning editor that the document content changed so it can fire its change listeners.voidfireEditorEvent(String type, String value) Delivers a semantic editor event (e.g. a code completion request) back to the owning editor.booleanTrue when the platform can bind a low level text input client (seecom.codename1.impl.CodenameOneImplementation#isTextInputSupported).startTextInput(TextInputClient client, TextInputConfig config) Binds the client to the platform text input source and returns an opaque handle.voidstopTextInput(Object handle) Unbinds a previously bound text input client.voidupdateTextInputState(Object handle, TextInputState state) Pushes the client's editing state down to the bound input source.
-
Method Details
-
isTextInputSupported
boolean isTextInputSupported()True when the platform can bind a low level text input client (seecom.codename1.impl.CodenameOneImplementation#isTextInputSupported). -
startTextInput
Binds the client to the platform text input source and returns an opaque handle. -
updateTextInputState
Pushes the client's editing state down to the bound input source. -
stopTextInput
Unbinds a previously bound text input client. -
editorChanged
void editorChanged()Notifies the owning editor that the document content changed so it can fire its change listeners. -
fireEditorEvent
-