public class SelectionSensitiveActionRenderer
extends info.magnolia.ui.dialog.actionarea.renderer.DefaultEditorActionRenderer
ActionRenderer
implementation that alters the 'enabled'-state of
the underlying Vaadin view based on AvailabilityChecker
decision made against a current selection provided
by SelectionChangedEvent
via ChooseDialogEventBus
.Constructor and Description |
---|
SelectionSensitiveActionRenderer(info.magnolia.event.EventBus chooseDialogEventBus,
info.magnolia.ui.api.availability.AvailabilityChecker availabilityChecker) |
Modifier and Type | Method and Description |
---|---|
info.magnolia.ui.api.view.View |
start(info.magnolia.ui.api.action.ActionDefinition definition,
info.magnolia.ui.dialog.actionarea.ActionListener listener) |
@Inject public SelectionSensitiveActionRenderer(@Named(value="choosedialog") info.magnolia.event.EventBus chooseDialogEventBus, info.magnolia.ui.api.availability.AvailabilityChecker availabilityChecker)
public info.magnolia.ui.api.view.View start(info.magnolia.ui.api.action.ActionDefinition definition, info.magnolia.ui.dialog.actionarea.ActionListener listener)
start
in interface info.magnolia.ui.dialog.actionarea.renderer.ActionRenderer
start
in class info.magnolia.ui.dialog.actionarea.renderer.DefaultEditorActionRenderer
Copyright © 2016 Magnolia International Ltd.. All rights reserved.