public class SelectionSensitiveActionRenderer extends 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,
AvailabilityChecker availabilityChecker) |
Modifier and Type | Method and Description |
---|---|
View |
start(ActionDefinition definition,
ActionListener listener) |
@Inject public SelectionSensitiveActionRenderer(@Named(value="choosedialog") info.magnolia.event.EventBus chooseDialogEventBus, AvailabilityChecker availabilityChecker)
public View start(ActionDefinition definition, ActionListener listener)
start
in interface ActionRenderer
start
in class DefaultEditorActionRenderer
Copyright © 2021 Magnolia International Ltd.. All rights reserved.