Class JmixMarkdownEditor.ModeChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<JmixMarkdownEditor>
io.jmix.flowui.kit.component.markdowneditor.JmixMarkdownEditor.ModeChangedEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
JmixMarkdownEditor
public static class JmixMarkdownEditor.ModeChangedEvent
extends com.vaadin.flow.component.ComponentEvent<JmixMarkdownEditor>
Event fired when the editor switches between Edit and Preview mode.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionModeChangedEvent(JmixMarkdownEditor source, boolean fromClient) Creates a new event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
mode
-
-
Constructor Details
-
ModeChangedEvent
Creates a new event.- Parameters:
source- the component that fired the eventfromClient-trueif the event originated on the client
-
-
Method Details
-
getMode
Returns the new mode.- Returns:
- the current
MarkdownEditorMode, nevernull
-