Package io.jmix.flowui.action.binder
Class ActionBindingProcessor
java.lang.Object
io.jmix.flowui.action.binder.ActionBindingProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ComponentActionBinder>protected List<ComponentActionUnbinder>protected List<ComponentShortcutActionBinder> -
Constructor Summary
Constructors -
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 ComponentActionBindergetComponentActionBinder(com.vaadin.flow.component.Component component) protected ComponentActionUnbindergetComponentActionUnbinder(com.vaadin.flow.component.Component component) protected ComponentShortcutActionBindergetComponentShortcutActionBinder(com.vaadin.flow.component.Component component) voidsetActionBinders(List<ComponentActionBinder> actionBinders) voidsetActionUnbinders(List<ComponentActionUnbinder> actionUnbinders) voidsetShortcutActionBinders(List<ComponentShortcutActionBinder> shortcutActionBinders) voidunbind(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)
-