Package io.jmix.flowui.action.binder
Class ActionBindingProcessor
java.lang.Object
io.jmix.flowui.action.binder.ActionBindingProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ComponentActionBinder>
protected List<ComponentActionUnbinder>
protected List<ComponentShortcutActionBinder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<C extends com.vaadin.flow.component.Component,
A extends Action>
ActionBinding<C,A> bind
(A action, ActionBinder<C> binder, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, boolean overrideComponentProperties) <C extends com.vaadin.flow.component.Component,
A extends Action>
ShortcutActionBinding<C,A> bindShortcut
(A action, ActionBinder<C> binder, ShortcutActionHandler<C> handler, boolean overrideComponentProperties) protected ComponentActionBinder
getComponentActionBinder
(com.vaadin.flow.component.Component component) protected ComponentActionUnbinder
getComponentActionUnbinder
(com.vaadin.flow.component.Component component) protected ComponentShortcutActionBinder
getComponentShortcutActionBinder
(com.vaadin.flow.component.Component component) void
setActionBinders
(List<ComponentActionBinder> actionBinders) void
setActionUnbinders
(List<ComponentActionUnbinder> actionUnbinders) void
setShortcutActionBinders
(List<ComponentShortcutActionBinder> shortcutActionBinders) void
unbind
(ActionBinding binding)
-
Field Details
-
actionBinders
-
shortcutActionBinders
-
actionUnbinders
-
-
Constructor Details
-
ActionBindingProcessor
public ActionBindingProcessor()
-
-
Method Details
-
setActionBinders
-
setShortcutActionBinders
@Autowired(required=false) public void setShortcutActionBinders(List<ComponentShortcutActionBinder> shortcutActionBinders) -
setActionUnbinders
@Autowired(required=false) public void setActionUnbinders(List<ComponentActionUnbinder> actionUnbinders) -
bind
public <C extends com.vaadin.flow.component.Component,A extends Action> ActionBinding<C,A> bind(A action, ActionBinder<C> binder, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, boolean overrideComponentProperties) -
bindShortcut
public <C extends com.vaadin.flow.component.Component,A extends Action> ShortcutActionBinding<C,A> bindShortcut(A action, ActionBinder<C> binder, ShortcutActionHandler<C> handler, boolean overrideComponentProperties) -
unbind
-
getComponentActionBinder
@Nullable protected ComponentActionBinder getComponentActionBinder(com.vaadin.flow.component.Component component) -
getComponentShortcutActionBinder
@Nullable protected ComponentShortcutActionBinder getComponentShortcutActionBinder(com.vaadin.flow.component.Component component) -
getComponentActionUnbinder
@Nullable protected ComponentActionUnbinder getComponentActionUnbinder(com.vaadin.flow.component.Component component)
-