public class IsComponentDeletableRule extends AbstractElementAvailabilityRule<info.magnolia.ui.vaadin.gwt.client.shared.ComponentElement>
PageEditorPresenter#selectedElement
in the page editor is a component
and the user has permission to delete it based on the 'deletable' property.Constructor and Description |
---|
IsComponentDeletableRule(PageEditorPresenter pageEditorPresenter) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAvailableForElement(info.magnolia.ui.vaadin.gwt.client.shared.ComponentElement element) |
isAvailableForItem
@Inject public IsComponentDeletableRule(PageEditorPresenter pageEditorPresenter)
protected boolean isAvailableForElement(info.magnolia.ui.vaadin.gwt.client.shared.ComponentElement element)
isAvailableForElement
in class AbstractElementAvailabilityRule<info.magnolia.ui.vaadin.gwt.client.shared.ComponentElement>
Copyright © 2021 Magnolia International Ltd.. All rights reserved.