public class GrapesJsHtmlEditorImpl extends io.jmix.ui.component.impl.AbstractComponent<GrapesJsHtmlEditorComponent> implements GrapesJsHtmlEditor
io.jmix.ui.component.HasValue.ValueChangeEvent<V>
io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapper
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<GjsBlock> |
blocks |
protected java.util.Collection<java.lang.String> |
disabledBlocks |
protected java.util.Collection<GjsPlugin> |
plugins |
protected java.lang.String |
prevValue |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
Constructor and Description |
---|
GrapesJsHtmlEditorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addBlocks(java.util.Collection<GjsBlock> blocks) |
void |
addPlugins(java.util.Collection<GjsPlugin> plugins) |
io.jmix.core.common.event.Subscription |
addValueChangeListener(java.util.function.Consumer<io.jmix.ui.component.HasValue.ValueChangeEvent<java.lang.String>> listener) |
protected void |
attachValueListener(GrapesJsHtmlEditorComponent component) |
java.util.Collection<GjsBlock> |
getCustomBlocks() |
java.util.Collection<java.lang.String> |
getDisabledBlocks() |
java.util.Collection<GjsPlugin> |
getPlugins() |
java.lang.String |
getValue() |
void |
removeCustomBlocks(java.util.Collection<GjsBlock> blocks) |
void |
removePlugins(java.util.Collection<GjsPlugin> plugins) |
void |
runCommand(java.lang.String command) |
void |
setCustomBlocks(java.util.Collection<GjsBlock> blocks) |
void |
setDisabledBlocks(java.util.Collection<java.lang.String> disabledBlocks) |
void |
setPlugins(java.util.Collection<GjsPlugin> plugins) |
void |
setValue(java.lang.String value) |
void |
stopCommand(java.lang.String command) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected java.lang.String prevValue
protected java.util.Collection<java.lang.String> disabledBlocks
protected java.util.Collection<GjsPlugin> plugins
protected java.util.Collection<GjsBlock> blocks
protected void attachValueListener(GrapesJsHtmlEditorComponent component)
public java.lang.String getValue()
getValue
in interface io.jmix.ui.component.HasValue<java.lang.String>
public void setValue(java.lang.String value)
setValue
in interface io.jmix.ui.component.HasValue<java.lang.String>
public io.jmix.core.common.event.Subscription addValueChangeListener(java.util.function.Consumer<io.jmix.ui.component.HasValue.ValueChangeEvent<java.lang.String>> listener)
addValueChangeListener
in interface io.jmix.ui.component.HasValue<java.lang.String>
public java.util.Collection<java.lang.String> getDisabledBlocks()
getDisabledBlocks
in interface GrapesJsHtmlEditor
public void setPlugins(java.util.Collection<GjsPlugin> plugins)
setPlugins
in interface GrapesJsHtmlEditor
public void addPlugins(java.util.Collection<GjsPlugin> plugins)
addPlugins
in interface GrapesJsHtmlEditor
public void removePlugins(java.util.Collection<GjsPlugin> plugins)
removePlugins
in interface GrapesJsHtmlEditor
public java.util.Collection<GjsPlugin> getPlugins()
getPlugins
in interface GrapesJsHtmlEditor
public java.util.Collection<GjsBlock> getCustomBlocks()
getCustomBlocks
in interface GrapesJsHtmlEditor
public void setCustomBlocks(java.util.Collection<GjsBlock> blocks)
setCustomBlocks
in interface GrapesJsHtmlEditor
public void addBlocks(java.util.Collection<GjsBlock> blocks)
addBlocks
in interface GrapesJsHtmlEditor
public void removeCustomBlocks(java.util.Collection<GjsBlock> blocks)
removeCustomBlocks
in interface GrapesJsHtmlEditor
public void runCommand(java.lang.String command)
runCommand
in interface GrapesJsHtmlEditor
public void stopCommand(java.lang.String command)
stopCommand
in interface GrapesJsHtmlEditor
public void setDisabledBlocks(java.util.Collection<java.lang.String> disabledBlocks)
setDisabledBlocks
in interface GrapesJsHtmlEditor