info.magnolia.ui.contentapp.field
Class LinkFieldSelectionFactory

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

public class LinkFieldSelectionFactory
extends AbstractFieldFactory<LinkFieldSelectionDefinition,String>

Creates and initializes a TextAndContentViewField field based on a field definition. This field is used to create an Input text field with a large ContentView area. The column value to handle is coming from the definition. If this value is not set, or the column is not part of the row elements, the Node Path is used.


Field Summary
 
Fields inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory
definition, field, item
 
Constructor Summary
LinkFieldSelectionFactory(LinkFieldSelectionDefinition definition, com.vaadin.data.Item relatedFieldItem, WorkbenchPresenter contentPresenter, info.magnolia.event.EventBus chooseDialogEventBus)
           
 
Method Summary
protected  com.vaadin.ui.Field<String> createFieldComponent()
          Implemented by subclasses to create and initialize the Vaadin Field instance to use.
protected  Class<String> getDefaultFieldType()
          Exposed method used by field's factory in order to define a default Field Type (decoupled from the definition).
 
Methods inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory
createDefaultValue, createField, getDefinitionType, getFieldDefinition, getFieldType, getI18nBasename, getView, initializeTransformer, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setPropertyDataSourceAndDefaultValue, setPropertyDataSourceDefaultValue
 
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
 

Constructor Detail

LinkFieldSelectionFactory

@Inject
public LinkFieldSelectionFactory(LinkFieldSelectionDefinition definition,
                                        com.vaadin.data.Item relatedFieldItem,
                                        WorkbenchPresenter contentPresenter,
                                        @Named(value="choosedialog")
                                        info.magnolia.event.EventBus chooseDialogEventBus)
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<LinkFieldSelectionDefinition,String>

getDefaultFieldType

protected Class<String> getDefaultFieldType()
Description copied from class: AbstractFieldFactory
Exposed method used by field's factory in order to define a default Field Type (decoupled from the definition).

Overrides:
getDefaultFieldType in class AbstractFieldFactory<LinkFieldSelectionDefinition,String>


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