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 Action
protected com.vaadin.flow.shared.Registration
protected final ValuePickerButton
protected com.vaadin.flow.shared.Registration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.Registration
protected String
generateTitle
(Action action) Returns the currentAction
associated with the component.protected void
void
Sets theAction
for 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 theAction
for 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 currentAction
associated with the component.- Returns:
- the current action, or
null
if no action is set
-
removeRegistrations
protected void removeRegistrations() -
addPropertyChangeListener
protected com.vaadin.flow.shared.Registration addPropertyChangeListener() -
generateTitle
-