Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface TextInputClient.CompositionCancellation

Known subtypesEditField, CodeView, EditorView, RichView

Optional contract for clients that can restore a canceled composition, including rich text attributes and undo state. Ports may restore text and selection for older clients; rich editors should implement this contract to restore their complete pre-composition state.

Methods

public abstract void cancelComposing()Restores the text, selection and attributes from before composition without recording an undo entry.

Method details

cancelComposing

public abstract void cancelComposing()
Restores the text, selection and attributes from before composition without recording an undo entry. Does nothing when no composition is active.