info.magnolia.ui.form.field.factory
Class RichTextFieldFactory

java.lang.Object
  extended by info.magnolia.ui.form.AbstractFormItem
      extended by info.magnolia.ui.form.field.factory.AbstractFieldFactory<RichTextFieldDefinition,String>
          extended by info.magnolia.ui.form.field.factory.RichTextFieldFactory
All Implemented Interfaces:
FieldFactory, FormItem

public class RichTextFieldFactory
extends AbstractFieldFactory<RichTextFieldDefinition,String>

Creates and initializes an edit field based on a field definition.


Field Summary
static String EVENT_CANCEL_LINK
          Event is emit from server to client when link dialog has been canceled or exception has occurred.
static String EVENT_GET_MAGNOLIA_LINK
          Event is emit from client to server when user requests a link dialog.
static String EVENT_SEND_MAGNOLIA_LINK
          Event is emit from server to client when link has been selected.
 
Fields inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory
definition, field, item
 
Constructor Summary
RichTextFieldFactory(RichTextFieldDefinition definition, com.vaadin.data.Item relatedFieldItem, info.magnolia.ui.api.app.AppController appController, info.magnolia.ui.api.context.UiContext uiContext)
           
 
Method Summary
protected  com.vaadin.ui.Field<String> createFieldComponent()
          Implemented by subclasses to create and initialize the Vaadin Field instance to use.
protected  Class<?> getDefaultFieldType(FieldDefinition fieldDefinition)
           
 
Methods inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory
createField, getFieldDefinition, getFieldType, getI18nBasename, getOrCreateProperty, getPropertyName, getRelatedNode, getView, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setPropertyDataSource
 
Methods inherited from class info.magnolia.ui.form.AbstractFormItem
getMessage, getMessages, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.ui.form.FormItem
getMessages, getParent, setParent
 

Field Detail

EVENT_SEND_MAGNOLIA_LINK

public static final String EVENT_SEND_MAGNOLIA_LINK
Event is emit from server to client when link has been selected.

See Also:
Constant Field Values

EVENT_CANCEL_LINK

public static final String EVENT_CANCEL_LINK
Event is emit from server to client when link dialog has been canceled or exception has occurred. In case of exception the event will carry error message.

See Also:
Constant Field Values

EVENT_GET_MAGNOLIA_LINK

public static final String EVENT_GET_MAGNOLIA_LINK
Event is emit from client to server when user requests a link dialog. Event carries optional link that should be treated as default link value.

See Also:
Constant Field Values
Constructor Detail

RichTextFieldFactory

@Inject
public RichTextFieldFactory(RichTextFieldDefinition definition,
                                   com.vaadin.data.Item relatedFieldItem,
                                   info.magnolia.ui.api.app.AppController appController,
                                   info.magnolia.ui.api.context.UiContext uiContext)
Method Detail

createFieldComponent

protected com.vaadin.ui.Field<String> createFieldComponent()
Description copied from class: AbstractFieldFactory
Implemented by subclasses to create and initialize the Vaadin Field instance to use.

Specified by:
createFieldComponent in class AbstractFieldFactory<RichTextFieldDefinition,String>

getDefaultFieldType

protected Class<?> getDefaultFieldType(FieldDefinition fieldDefinition)
Overrides:
getDefaultFieldType in class AbstractFieldFactory<RichTextFieldDefinition,String>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.