public class ChooseDialogComponentProviderUtil extends Object
ChooseDialogComponentProviderUtil
helps creating a ComponentProvider
dedicated to a choose dialog.Constructor and Description |
---|
ChooseDialogComponentProviderUtil() |
Modifier and Type | Method and Description |
---|---|
static info.magnolia.objectfactory.ComponentProvider |
createChooseDialogComponentProvider(ChooseDialogDefinition chooseDialogDefinition,
info.magnolia.objectfactory.ComponentProvider componentProvider)
Creates the choose-dialog specific component provider, with proper bindings for e.g.
|
static info.magnolia.objectfactory.ComponentProvider |
createChooseDialogComponentProvider(UiContext uiContext,
ChooseDialogDefinition chooseDialogDefinition,
info.magnolia.objectfactory.ComponentProvider componentProvider)
Creates the choose-dialog specific component provider, with proper bindings for e.g.
|
public static info.magnolia.objectfactory.ComponentProvider createChooseDialogComponentProvider(ChooseDialogDefinition chooseDialogDefinition, info.magnolia.objectfactory.ComponentProvider componentProvider)
ContentConnector
or ImageProvider
.
In particular, this ensures that within the dialog, these components get their dependencies as configured in the choose-dialog definition, rather than from current sub-app context.
chooseDialogDefinition
- the choose-dialog definition, as configured for a content app, or built by code.componentProvider
- the parent ComponentProvider
.ChooseDialogPresenter
with.public static info.magnolia.objectfactory.ComponentProvider createChooseDialogComponentProvider(UiContext uiContext, ChooseDialogDefinition chooseDialogDefinition, info.magnolia.objectfactory.ComponentProvider componentProvider)
ContentConnector
or ImageProvider
, and registers given UiContext
for further use.
In particular, this ensures that within the dialog, these components get their dependencies as configured in the choose-dialog definition, rather than from current sub-app context.
uiContext
- the choose-dialog's UiContext, so that dialog actions can use it.chooseDialogDefinition
- the choose-dialog definition, as configured for a content app, or built by code.componentProvider
- the parent ComponentProvider
.ChooseDialogPresenter
with.Copyright © 2016 Magnolia International Ltd.. All rights reserved.