public interface ActionOwner
Modifier and Type | Method and Description |
---|---|
Action |
getAction() |
default void |
setAction(Action action)
Sets the action to the owner.
|
void |
setAction(Action action,
boolean overrideOwnerProperties)
Sets the action to the owner.
|
@Nullable Action getAction()
null
@StudioProperty(type=COMPONENT_REF, options="io.jmix.ui.action.Action") default void setAction(@Nullable Action action)
List of properties that the action and the owner have and which can be overridden:
caption
description
shortcut
enabled
visible
primary
icon
action
- an actionvoid setAction(@Nullable Action action, boolean overrideOwnerProperties)
overrideOwnerProperties
is true
then the action properties will
override owner properties, otherwise the owner properties will be overridden if they are null
.
List of properties that the action and the owner have and which can be overridden:
caption
description
shortcut
enabled
visible
primary
icon
action
- an actionoverrideOwnerProperties
- whether action properties override owner properties