Class JmixButtonActionSupport
java.lang.Object
io.jmix.flowui.kit.component.button.JmixButtonActionSupport
Delegate that handles action set to
JmixButton.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionprotected com.vaadin.flow.shared.Registrationprotected final JmixButtonprotected com.vaadin.flow.shared.Registration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddActionVariant(JmixButton component, ActionVariant actionVariant) protected voidprotected voidonButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidremoveActionVariant(JmixButton component, ActionVariant actionVariant) protected voidvoidSets the action to the component.protected voidupdateActionVariant(boolean overrideComponentProperties) protected voidprotected voidupdateIcon(boolean overrideComponentProperties) protected voidupdateText(boolean overrideComponentProperties) protected voidupdateTitle(boolean overrideComponentProperties) protected void
-
Field Details
-
button
-
action
-
buttonClickRegistration
protected com.vaadin.flow.shared.Registration buttonClickRegistration -
actionPropertyChangeRegistration
protected com.vaadin.flow.shared.Registration actionPropertyChangeRegistration
-
-
Constructor Details
-
JmixButtonActionSupport
-
-
Method Details
-
setAction
Sets the action to the component. IfoverrideComponentPropertiesistruethen 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:
textdescriptionshortcutCombinationenabledvisibleiconvariant
- Parameters:
action- an action to setoverrideComponentProperties- whether action properties override component properties
-
getAction
- Returns:
- an action or
null
-
addActionVariant
-
removeActionVariant
-
removeRegistrations
protected void removeRegistrations() -
updateText
protected void updateText(boolean overrideComponentProperties) -
updateEnabled
protected void updateEnabled() -
updateVisible
protected void updateVisible() -
updateActionVariant
protected void updateActionVariant(boolean overrideComponentProperties) -
updateIcon
protected void updateIcon(boolean overrideComponentProperties) -
updateTitle
protected void updateTitle(boolean overrideComponentProperties) -
onButtonClick
protected void onButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
onActionPropertyChange
-