Package io.jmix.flowui.kit.component
Interface HasAction
- All Known Implementing Classes:
BreadCrumbsPresenter.NavigationButton
,ComboButton
,GridContextMenuItemComponent
,GridMenuItemActionWrapper
,JmixButton
,ValuePickerButton
public interface HasAction
Interface to be implemented by UI components supporting an action.
-
Method Summary
-
Method Details
-
setAction
Sets the action to the component. Action properties override component's properties.List of properties that the action and the component have and which can be overridden:
caption
description
shortcutCombination
enabled
visible
icon
variant
- Parameters:
action
- an action to set
-
setAction
Sets the action to the component. IfoverrideComponentProperties
istrue
then the action properties will override component's properties, otherwise the component's properties will be overridden if they arenull
.List of properties that the action and the component have and which can be overridden:
text
description
shortcutCombination
enabled
visible
icon
variant
- Parameters:
action
- an action to setoverrideComponentProperties
- whether action properties override component properties
-
getAction
- Returns:
- an action or
null
-