public class RichTextFieldFactory extends AbstractFieldFactory<RichTextFieldDefinition,String>
Modifier and Type | Class and Description |
---|---|
protected static class |
RichTextFieldFactory.MagnoliaLink
Link info wrapper.
|
protected static class |
RichTextFieldFactory.PluginData
Plugin data wrapper.
|
Modifier and Type | Field and Description |
---|---|
protected AppController |
appController |
static String |
EVENT_CANCEL_LINK
Event is transmitted from server to client when link dialog has been
canceled or exception has occurred.
|
static String |
EVENT_GET_MAGNOLIA_LINK
Event is transmitted from client to server when user requests a link dialog.
|
static String |
EVENT_SEND_MAGNOLIA_LINK
Event is transmitted from server to client when link has been selected.
|
protected info.magnolia.i18nsystem.SimpleTranslator |
i18n |
protected MagnoliaRichTextField |
richTextEditor |
protected UiContext |
uiContext |
definition, field, item
Constructor and Description |
---|
RichTextFieldFactory(RichTextFieldDefinition definition,
com.vaadin.data.Item relatedFieldItem,
AppController appController,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.ui.Field<String> |
createFieldComponent()
Implemented by subclasses to create and initialize the Vaadin Field instance to use.
|
protected MagnoliaRichTextFieldConfig |
initializeCKEditorConfig() |
protected List<MagnoliaRichTextFieldConfig.ToolbarGroup> |
initializeToolbarConfig() |
createDefaultValue, createField, getComponentProvider, getDefaultFieldType, getDefinitionType, getFieldDefinition, getFieldType, getI18nBasename, getLocale, getView, initializeConverter, initializeTransformer, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setLocale, setPropertyDataSourceAndDefaultValue, setPropertyDataSourceDefaultValue
getMessage, getMessages, getParent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getParent, setParent
public static final String EVENT_SEND_MAGNOLIA_LINK
public static final String EVENT_CANCEL_LINK
public static final String EVENT_GET_MAGNOLIA_LINK
protected final AppController appController
protected final UiContext uiContext
protected final info.magnolia.i18nsystem.SimpleTranslator i18n
protected MagnoliaRichTextField richTextEditor
@Inject public RichTextFieldFactory(RichTextFieldDefinition definition, com.vaadin.data.Item relatedFieldItem, AppController appController, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
protected com.vaadin.ui.Field<String> createFieldComponent()
AbstractFieldFactory
createFieldComponent
in class AbstractFieldFactory<RichTextFieldDefinition,String>
protected MagnoliaRichTextFieldConfig initializeCKEditorConfig()
protected List<MagnoliaRichTextFieldConfig.ToolbarGroup> initializeToolbarConfig()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.