Class ActivityIndicationInteractionsPair
java.lang.Object
com.evolveum.midpoint.web.component.input.ActivityIndicationInteractionsPair
- All Implemented Interfaces:
ComponentInteractionsPair<AjaxIconButton>,Serializable,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
public class ActivityIndicationInteractionsPair
extends Object
implements ComponentInteractionsPair<AjaxIconButton>, org.apache.wicket.model.IDetachable
Implementation of `ComponentInteractionsPair` that provides activity indication for `AjaxIconButton` components.
This class manages the visual indication of an ongoing activity by temporarily changing the icon and title of a
button. When an activity starts, the button's icon and title are replaced with activity-specific values. After the
activity completes, the original icon and title are restored.
-
Constructor Summary
ConstructorsConstructorDescriptionActivityIndicationInteractionsPair(org.apache.wicket.model.IModel<String> activityIndicationIcon, org.apache.wicket.model.IModel<String> activityIndicationTitle, boolean disableOnActivity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(AjaxIconButton component, org.apache.wicket.ajax.AjaxRequestTarget request) Saves the original button icon and title and replaces them with the activity indication icon and title.voiddetach()voidreaction(AjaxIconButton component, org.apache.wicket.ajax.AjaxRequestTarget request) Restores the original icon and title back to the button.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.web.component.input.ComponentInteractionsPair
actionAndThen, andThen, reactionAndThen
-
Constructor Details
-
ActivityIndicationInteractionsPair
-
-
Method Details
-
action
Saves the original button icon and title and replaces them with the activity indication icon and title.- Specified by:
actionin interfaceComponentInteractionsPair<AjaxIconButton>- Parameters:
component- The button on which you want to indicate the activity.request- The target of the Ajax request, in which you want to add the activity indication to the button.
-
reaction
Restores the original icon and title back to the button.- Specified by:
reactionin interfaceComponentInteractionsPair<AjaxIconButton>- Parameters:
component- The button on which you want to restore the icon and title.request- The target of the Ajax request, in which you want to restore the icon and text of the button.
-
detach
public void detach()- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable
-