Package io.jmix.flowui.action.binder
Class ActionBinder<H extends com.vaadin.flow.component.Component>
java.lang.Object
io.jmix.flowui.action.binder.ActionBinder<H>
@Component("flowui_ActionBinder")
@Scope("prototype")
public class ActionBinder<H extends com.vaadin.flow.component.Component>
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected ActionBindingProcessor
protected ActionsHolderBindingProcessor
protected final com.google.common.collect.Multimap<Action,
ActionBinding> protected final H
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
addActionInternal
(Action action, int index) protected void
addBindingInternal
(ActionBinding binding, int index) <A extends Action>
ActionBinding<H,A> createActionBinding
(A action, BiFunction<H, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler) <A extends Action>
ActionBinding<H,A> createActionBinding
(A action, BiFunction<H, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, boolean overrideComponentProperties) <A extends Action,
C extends com.vaadin.flow.component.Component>
ActionsHolderBinding<H,A, C> createActionsHolderBinding
(A action, C component, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler) <A extends Action,
C extends com.vaadin.flow.component.Component>
ActionsHolderBinding<H,A, C> createActionsHolderBinding
(A action, C component, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, int index) <A extends Action>
ShortcutActionBinding<H,A> createShortcutActionBinding
(A action, ShortcutActionHandler<H> handler) <A extends Action>
ShortcutActionBinding<H,A> createShortcutActionBinding
(A action, ShortcutActionHandler<H> handler, boolean overrideComponentProperties) <A extends Action,
C extends com.vaadin.flow.component.Component>
ShortcutActionsHolderBinding<H,A, C> createShortcutActionsHolderBinding
(A action, C component, ShortcutActionHandler<C> handler) <A extends Action,
C extends com.vaadin.flow.component.Component>
ShortcutActionsHolderBinding<H,A, C> createShortcutActionsHolderBinding
(A action, C component, ShortcutActionHandler<C> handler, int index) protected int
findActionIndexById
(String actionId) getBindings
(com.vaadin.flow.component.Component component) getBindings
(Action action) int
void
removeAction
(Action action) protected void
removeBindingInternal
(ActionBinding binding) void
setActionBindingProcessor
(ActionBindingProcessor actionBindingProcessor) void
setActionsHolderProcessor
(ActionsHolderBindingProcessor actionsHolderProcessor)
-
Field Details
-
holder
-
actions
-
bindingsMap
-
actionBindingProcessor
-
actionsHolderProcessor
-
-
Constructor Details
-
ActionBinder
-
-
Method Details
-
setActionBindingProcessor
-
setActionsHolderProcessor
@Autowired public void setActionsHolderProcessor(ActionsHolderBindingProcessor actionsHolderProcessor) -
getHolder
-
addAction
-
addAction
-
removeAction
-
getAction
-
indexOf
-
getActions
-
getBindings
-
getBindings
-
createActionBinding
public <A extends Action> ActionBinding<H,A> createActionBinding(A action, BiFunction<H, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler) -
createActionBinding
public <A extends Action> ActionBinding<H,A> createActionBinding(A action, BiFunction<H, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, boolean overrideComponentProperties) -
createShortcutActionBinding
public <A extends Action> ShortcutActionBinding<H,A> createShortcutActionBinding(A action, ShortcutActionHandler<H> handler) -
createShortcutActionBinding
public <A extends Action> ShortcutActionBinding<H,A> createShortcutActionBinding(A action, ShortcutActionHandler<H> handler, boolean overrideComponentProperties) -
createActionsHolderBinding
public <A extends Action,C extends com.vaadin.flow.component.Component> ActionsHolderBinding<H,A, createActionsHolderBindingC> (A action, C component, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler) -
createActionsHolderBinding
public <A extends Action,C extends com.vaadin.flow.component.Component> ActionsHolderBinding<H,A, createActionsHolderBindingC> (A action, C component, BiFunction<C, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.shared.Registration> handler, int index) -
createShortcutActionsHolderBinding
public <A extends Action,C extends com.vaadin.flow.component.Component> ShortcutActionsHolderBinding<H,A, createShortcutActionsHolderBindingC> (A action, C component, ShortcutActionHandler<C> handler) -
createShortcutActionsHolderBinding
public <A extends Action,C extends com.vaadin.flow.component.Component> ShortcutActionsHolderBinding<H,A, createShortcutActionsHolderBindingC> (A action, C component, ShortcutActionHandler<C> handler, int index) -
addBindingInternal
-
addActionInternal
-
findActionIndexById
-
removeBindingInternal
-