Package io.jmix.ui.component
Interface ActionOwner
- All Known Subinterfaces:
Button
,LinkButton
- All Known Implementing Classes:
ButtonImpl
,LinkButtonImpl
,PaletteButton
public interface ActionOwner
Component supporting an action.
-
Method Summary
-
Method Details
-
getAction
- Returns:
- an action or
null
-
setAction
@StudioProperty(type=COMPONENT_REF, options="io.jmix.ui.action.Action") default void setAction(@Nullable Action action) Sets the action to the owner. Action properties override owner properties.List of properties that the action and the owner have and which can be overridden:
caption
description
shortcut
enabled
visible
primary
icon
- Parameters:
action
- an action
-
setAction
Sets the action to the owner. IfoverrideOwnerProperties
istrue
then the action properties will override owner properties, otherwise the owner properties will be overridden if they arenull
.List of properties that the action and the owner have and which can be overridden:
caption
description
shortcut
enabled
visible
primary
icon
- Parameters:
action
- an actionoverrideOwnerProperties
- whether action properties override owner properties
-