Package de.f0rce.ace.events
Class AceSelectionChanged
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<AceEditor>
de.f0rce.ace.events.AceSelectionChanged
- All Implemented Interfaces:
Serializable
@DomEvent("editor-selection")
public class AceSelectionChanged
extends com.vaadin.flow.component.ComponentEvent<AceEditor>
- Author:
- David "F0rce" Dodlek
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAceSelectionChanged(AceEditor source, boolean fromClient, elemental.json.JsonObject selectionObject, elemental.json.JsonObject cursorObject) -
Method Summary
Modifier and TypeMethodDescriptionReturns the current cursor position of the editor.Returns the current selection of the editor.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AceSelectionChanged
public AceSelectionChanged(AceEditor source, boolean fromClient, @EventData("event.detail.selection") elemental.json.JsonObject selectionObject, @EventData("event.detail.cursorPosition") elemental.json.JsonObject cursorObject)
-
-
Method Details
-
getSelection
Returns the current selection of the editor.- Returns:
AceSelection
-
getCursorPosition
Returns the current cursor position of the editor.- Returns:
AceCursorPosition
-