Class GeneratedVaadinRichTextEditor<R extends GeneratedVaadinRichTextEditor<R,T>,T>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.AbstractField<C,T>
-
- com.vaadin.flow.component.AbstractSinglePropertyField<R,T>
-
- com.vaadin.flow.component.richtexteditor.GeneratedVaadinRichTextEditor<R,T>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,Serializable
- Direct Known Subclasses:
RichTextEditor
@Deprecated @Tag("vaadin-rich-text-editor") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.3.28") @NpmPackage(value="@vaadin/rich-text-editor",version="23.3.28") @NpmPackage(value="@vaadin/vaadin-rich-text-editor",version="23.3.28") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/rich-text-editor/src/vaadin-rich-text-editor.js") public abstract class GeneratedVaadinRichTextEditor<R extends GeneratedVaadinRichTextEditor<R,T>,T> extends com.vaadin.flow.component.AbstractSinglePropertyField<R,T> implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-rich-text-editor>is a Web Component for rich text editing. It provides a set of toolbar controls to apply formatting on the content, which is stored and can be accessed as HTML5 or JSON string.<vaadin-rich-text-editor></vaadin-rich-text-editor>Vaadin Rich Text Editor focuses on the structure, not the styling of content. Therefore, the semantic HTML5 tags and CSS usage is limited to most common cases, like horizontal text alignment.
Styling
The following state attributes are available for styling:
Attribute Description Part name disabledSet to a disabled text editor :host readonlySet to a readonly text editor :host Styling The following shadow DOM parts are available for styling:
Part name Description toolbarThe toolbar wrapper contentThe content wrapper groupThe group for toolbar controls undo-buttonThe "undo" button redo-buttonThe "redo" button bold-buttonThe "bold" button italic-buttonThe "italic" button underline-buttonThe "underline" button strike-buttonThe "strike-through" button h1-buttonThe "header 1" button h2-buttonThe "header 2" button h3-buttonThe "header 3" button subscript-buttonThe "subscript" button superscript-buttonThe "superscript" button list-ordered-buttonThe "ordered list" button list-bullet-buttonThe "bullet list" button align-left-buttonThe "left align" button align-center-buttonThe "center align" button align-right-buttonThe "right align" button image-buttonThe "image" button blockquote-buttonThe "blockquote" button code-block-buttonThe "code block" button clean-buttonThe "clean formatting" button Shadow parts - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedVaadinRichTextEditor.ChangeEvent<R extends GeneratedVaadinRichTextEditor<R,?>>Deprecated.since v23.3, generated classes will be removed in v24.-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V extends Object>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinRichTextEditor()Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, boolean acceptNullValues, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.vaadin.flow.shared.RegistrationaddChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRichTextEditor.ChangeEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.voidaddThemeVariants(RichTextEditorVariant... variants)Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetHtmlValueString()Deprecated.since v23.3, generated classes will be removed in v24.protected elemental.json.JsonArraygetI18nJsonArray()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisDisabledBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisReadonlyBoolean()Deprecated.since v23.3, generated classes will be removed in v24.voidremoveThemeVariants(RichTextEditorVariant... variants)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetDisabled(boolean disabled)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetI18n(elemental.json.JsonArray i18n)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetReadonly(boolean readonly)Deprecated.since v23.3, generated classes will be removed in v24.-
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
-
Methods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEquals
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
-
-
-
Constructor Detail
-
GeneratedVaadinRichTextEditor
@Deprecated public GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.SerializableFunction<T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRichTextEditor component with the given arguments.- Type Parameters:
P- the property type- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedelementPropertyType- the type of the element propertypresentationToModel- a function that converts a string value to a model valuemodelToPresentation- a function that converts a model value to a string value
-
GeneratedVaadinRichTextEditor
@Deprecated public GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, boolean acceptNullValues, boolean isInitialValueOptional)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRichTextEditor component with the given arguments.- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedacceptNullValues- whethernullis accepted as a model valueisInitialValueOptional- ifisInitialValueOptionalistruethen the initial value is used only if element has no"value"property value, otherwise element"value"property is ignored and the initial value is set
-
GeneratedVaadinRichTextEditor
@Deprecated public GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRichTextEditor component with the given arguments.- Type Parameters:
P- the property type- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedelementPropertyType- the type of the element propertypresentationToModel- a function that accepts this component and a property value and returns a model valuemodelToPresentation- a function that accepts this component and a model value and returns a property value
-
GeneratedVaadinRichTextEditor
@Deprecated public GeneratedVaadinRichTextEditor()
Deprecated.since v23.3, generated classes will be removed in v24.Default constructor.
-
-
Method Detail
-
addThemeVariants
@Deprecated public void addThemeVariants(RichTextEditorVariant... variants)
Deprecated.since v23.3, generated classes will be removed in v24. UseRichTextEditor.addThemeVariants(com.vaadin.flow.component.richtexteditor.RichTextEditorVariant...)instead.Adds theme variants to the component.- Parameters:
variants- theme variants to add
-
removeThemeVariants
@Deprecated public void removeThemeVariants(RichTextEditorVariant... variants)
Deprecated.since v23.3, generated classes will be removed in v24. UseRichTextEditor.removeThemeVariants(com.vaadin.flow.component.richtexteditor.RichTextEditorVariant...)instead.Removes theme variants from the component.- Parameters:
variants- theme variants to remove
-
getHtmlValueString
@Deprecated @Synchronize(property="htmlValue", value="html-value-changed") protected String getHtmlValueString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
HTML representation of the rich text editor content.
This property is synchronized automatically from client side when a 'html-value-changed' event happens.
- Returns:
- the
htmlValueproperty from the webcomponent
-
isDisabledBoolean
@Deprecated protected boolean isDisabledBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
When true, the user can not modify, nor copy the editor content.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
disabledproperty from the webcomponent
-
setDisabled
@Deprecated protected void setDisabled(boolean disabled)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
When true, the user can not modify, nor copy the editor content.
- Parameters:
disabled- the boolean value to set
-
isReadonlyBoolean
@Deprecated protected boolean isReadonlyBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
When true, the user can not modify the editor content, but can copy it.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
readonlyproperty from the webcomponent
-
setReadonly
@Deprecated protected void setReadonly(boolean readonly)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
When true, the user can not modify the editor content, but can copy it.
- Parameters:
readonly- the boolean value to set
-
getI18nJsonArray
@Deprecated protected elemental.json.JsonArray getI18nJsonArray()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
An object used to localize this component. The properties are used e.g. as the tooltips for the editor toolbar buttons.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
i18nproperty from the webcomponent
-
setI18n
@Deprecated protected void setI18n(elemental.json.JsonArray i18n)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
An object used to localize this component. The properties are used e.g. as the tooltips for the editor toolbar buttons.
- Parameters:
i18n- the JsonArray value to set
-
addChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRichTextEditor.ChangeEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forchangeevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
-