info.magnolia.pages.app.action
Class CreateComponentAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<CreateComponentActionDefinition>
      extended by info.magnolia.pages.app.action.CreateComponentAction
All Implemented Interfaces:
info.magnolia.ui.api.action.Action

public class CreateComponentAction
extends info.magnolia.ui.api.action.AbstractAction<CreateComponentActionDefinition>

Adds a component underneath the area passed in AreaElement. Gets a list of available components for this area and creates a select field.


Constructor Summary
CreateComponentAction(CreateComponentActionDefinition definition, info.magnolia.ui.vaadin.gwt.client.shared.AreaElement area, info.magnolia.event.EventBus eventBus, info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry, info.magnolia.ui.api.app.SubAppContext subAppContext, info.magnolia.objectfactory.ComponentProvider componentProvider, info.magnolia.ui.dialog.formdialog.FormDialogPresenterFactory formDialogPresenterFactory, info.magnolia.i18nsystem.SimpleTranslator i18n)
           
 
Method Summary
 void execute()
           
 
Methods inherited from class info.magnolia.ui.api.action.AbstractAction
getDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateComponentAction

@Inject
public CreateComponentAction(CreateComponentActionDefinition definition,
                                    info.magnolia.ui.vaadin.gwt.client.shared.AreaElement area,
                                    @Named(value="subapp")
                                    info.magnolia.event.EventBus eventBus,
                                    info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry,
                                    info.magnolia.ui.api.app.SubAppContext subAppContext,
                                    info.magnolia.objectfactory.ComponentProvider componentProvider,
                                    info.magnolia.ui.dialog.formdialog.FormDialogPresenterFactory formDialogPresenterFactory,
                                    info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail

execute

public void execute()
             throws info.magnolia.ui.api.action.ActionExecutionException
Throws:
info.magnolia.ui.api.action.ActionExecutionException


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