Class ValuePickerButtonActionSupport
java.lang.Object
io.jmix.flowui.kit.component.valuepicker.ValuePickerButtonActionSupport
Provides support for associating and managing an
Action with a ValuePickerButton.
This class handles updating the button's properties (such as title, icon, and visibility) based
on the associated action, and facilitates event registration and cleanup.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionprotected com.vaadin.flow.shared.Registrationprotected final ValuePickerButtonprotected com.vaadin.flow.shared.Registration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.Registrationprotected @Nullable StringgenerateTitle(Action action) @Nullable ActionReturns the currentActionassociated with the component.protected voidvoidSets theActionfor the associated component and updates the component's properties based on the action's state if specified.
-
Field Details
-
button
-
action
-
registration
protected com.vaadin.flow.shared.Registration registration -
actionPropertyChangeRegistration
protected com.vaadin.flow.shared.Registration actionPropertyChangeRegistration
-
-
Constructor Details
-
ValuePickerButtonActionSupport
-
-
Method Details
-
setAction
Sets theActionfor the associated component and updates the component's properties based on the action's state if specified.- Parameters:
action- the action to set; may be nulloverrideComponentProperties- a flag indicating whether to update the component's properties based on the action's state
-
getAction
Returns the currentActionassociated with the component.- Returns:
- the current action, or
nullif no action is set
-
removeRegistrations
protected void removeRegistrations() -
addPropertyChangeListener
protected com.vaadin.flow.shared.Registration addPropertyChangeListener() -
generateTitle
-