info.magnolia.pages.app.action
Class CreateComponentAction
java.lang.Object
info.magnolia.ui.api.action.AbstractAction<CreateComponentActionDefinition>
info.magnolia.pages.app.action.CreateComponentAction
- All Implemented Interfaces:
- Action
public class CreateComponentAction
- extends 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.
Method Summary |
void |
execute()
Executes the action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateComponentAction
@Inject
public CreateComponentAction(CreateComponentActionDefinition definition,
AreaElement area,
@Named(value="subapp")
info.magnolia.event.EventBus eventBus,
info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry,
SubAppContext subAppContext,
info.magnolia.objectfactory.ComponentProvider componentProvider,
FormDialogPresenterFactory formDialogPresenterFactory,
info.magnolia.i18nsystem.SimpleTranslator i18n)
execute
public void execute()
throws ActionExecutionException
- Description copied from interface:
Action
- Executes the action.
- Throws:
ActionExecutionException
- if an error occurs performing the action
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.