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 UiContextBoundComponentProvider |
createChooseDialogComponentProvider(ChooseDialogDefinition chooseDialogDefinition,
info.magnolia.objectfactory.ComponentProvider componentProvider)
Creates the choose-dialog specific component provider, with proper bindings for e.g.
|
static UiContextBoundComponentProvider |
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 UiContextBoundComponentProvider createChooseDialogComponentProvider(ChooseDialogDefinition chooseDialogDefinition, info.magnolia.objectfactory.ComponentProvider componentProvider)
ContentConnector
and
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 UiContextBoundComponentProvider createChooseDialogComponentProvider(UiContext uiContext, ChooseDialogDefinition chooseDialogDefinition, info.magnolia.objectfactory.ComponentProvider componentProvider)
ContentConnector
and
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 © 2020 Magnolia International Ltd.. All rights reserved.