Package io.jmix.flowui.view.impl
Class ViewActionsImpl
java.lang.Object
io.jmix.flowui.view.impl.ViewActionsImpl
- All Implemented Interfaces:
HasActions
,ViewActions
@Component("flowui_ViewActions")
@Scope("prototype")
public class ViewActionsImpl
extends Object
implements ViewActions
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionViewActionsImpl
(ActionBinder<View<?>> actionBinder) Deprecated, for removal: This API element is subject to removal in a future version.ViewActionsImpl
(View<?> view) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an action to the component at the specified index.protected void
addActionInternal
(Action action, int index) protected void
addShortcutListenerIfNeeded
(Action action) protected void
attachAction
(Action action) protected void
detachAction
(Action action) Returns an action with passed id.protected View<?>
getView()
void
removeAction
(Action action) Removes the action from the component.protected void
removeActionInternal
(Action action) protected void
removeShortcutListener
(Action action) protected <C extends com.vaadin.flow.component.Component>
com.vaadin.flow.component.ShortcutRegistrationshortcutHandler
(C viewLayout, com.vaadin.flow.component.ShortcutEventListener shortcutEventListener, KeyCombination keyCombination) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.component.HasActions
addAction, removeAction, removeAllActions
-
Field Details
-
view
-
actions
-
actionShortcutBinding
-
actionBinder
-
-
Constructor Details
-
ViewActionsImpl
-
ViewActionsImpl
@Deprecated(since="2.2", forRemoval=true) public ViewActionsImpl(ActionBinder<View<?>> actionBinder) Deprecated, for removal: This API element is subject to removal in a future version.UseViewActionsImpl(View)
instead
-
-
Method Details
-
addAction
Description copied from interface:HasActions
Add an action to the component at the specified index.- Specified by:
addAction
in interfaceHasActions
- Parameters:
action
- action to addindex
- index at which the specified action is to be added
-
addActionInternal
-
removeAction
Description copied from interface:HasActions
Removes the action from the component.- Specified by:
removeAction
in interfaceHasActions
- Parameters:
action
- action to remove
-
removeActionInternal
-
getActions
- Specified by:
getActions
in interfaceHasActions
- Returns:
- unmodifiable collection of actions
-
getAction
Description copied from interface:HasActions
Returns an action with passed id.- Specified by:
getAction
in interfaceHasActions
- Parameters:
id
- id of the action to find- Returns:
- an action by its id, or
null
if not found
-
getActionInternal
-
shortcutHandler
protected <C extends com.vaadin.flow.component.Component> com.vaadin.flow.component.ShortcutRegistration shortcutHandler(C viewLayout, com.vaadin.flow.component.ShortcutEventListener shortcutEventListener, KeyCombination keyCombination) -
getView
-
attachAction
-
addShortcutListenerIfNeeded
-
removeShortcutListener
-
detachAction
-
getActionShortcutBinding
-
ViewActionsImpl(View)
instead