public class CreateComponentAction extends AbstractAction<CreateComponentActionDefinition>
AreaElement
.
Gets a list of available components for this area and creates a select field.Constructor and Description |
---|
CreateComponentAction(CreateComponentActionDefinition definition,
AreaElement area,
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) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
getDefinition
@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)
public void execute() throws ActionExecutionException
Action
ActionExecutionException
- if an error occurs performing the actionCopyright © 2015 Magnolia International Ltd.. All rights reserved.