Package io.jmix.grapesjs.component.impl
Class GrapesJsHtmlEditorImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<GrapesJsHtmlEditorComponent>
io.jmix.grapesjs.component.impl.GrapesJsHtmlEditorImpl
- All Implemented Interfaces:
GrapesJsHtmlEditor
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,HasValue<String>
- Direct Known Subclasses:
GrapesJsNewsletterHtmlEditorImpl
,GrapesJsWebpageHtmlEditorImpl
public class GrapesJsHtmlEditorImpl
extends AbstractComponent<GrapesJsHtmlEditorComponent>
implements GrapesJsHtmlEditor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection<GjsBlock>
protected Collection<String>
protected Collection<GjsPlugin>
protected String
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.grapesjs.component.GrapesJsHtmlEditor
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlocks
(Collection<GjsBlock> blocks) void
addPlugins
(Collection<GjsPlugin> plugins) protected void
attachValueListener
(GrapesJsHtmlEditorComponent component) getValue()
void
removeCustomBlocks
(Collection<GjsBlock> blocks) void
removePlugins
(Collection<GjsPlugin> plugins) void
runCommand
(String command) void
setCustomBlocks
(Collection<GjsBlock> blocks) void
setDisabledBlocks
(Collection<String> disabledBlocks) void
setPlugins
(Collection<GjsPlugin> plugins) void
void
stopCommand
(String command) Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.HasValue
clear, getEmptyValue, isEmpty
-
Field Details
-
prevValue
-
disabledBlocks
-
plugins
-
blocks
-
-
Constructor Details
-
GrapesJsHtmlEditorImpl
public GrapesJsHtmlEditorImpl()
-
-
Method Details
-
attachValueListener
-
getValue
-
setValue
-
addValueChangeListener
- Specified by:
addValueChangeListener
in interfaceHasValue<String>
-
getDisabledBlocks
- Specified by:
getDisabledBlocks
in interfaceGrapesJsHtmlEditor
-
setPlugins
- Specified by:
setPlugins
in interfaceGrapesJsHtmlEditor
-
addPlugins
- Specified by:
addPlugins
in interfaceGrapesJsHtmlEditor
-
removePlugins
- Specified by:
removePlugins
in interfaceGrapesJsHtmlEditor
-
getPlugins
- Specified by:
getPlugins
in interfaceGrapesJsHtmlEditor
-
getCustomBlocks
- Specified by:
getCustomBlocks
in interfaceGrapesJsHtmlEditor
-
setCustomBlocks
- Specified by:
setCustomBlocks
in interfaceGrapesJsHtmlEditor
-
addBlocks
- Specified by:
addBlocks
in interfaceGrapesJsHtmlEditor
-
removeCustomBlocks
- Specified by:
removeCustomBlocks
in interfaceGrapesJsHtmlEditor
-
runCommand
- Specified by:
runCommand
in interfaceGrapesJsHtmlEditor
-
stopCommand
- Specified by:
stopCommand
in interfaceGrapesJsHtmlEditor
-
setDisabledBlocks
- Specified by:
setDisabledBlocks
in interfaceGrapesJsHtmlEditor
-