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.
See Also:
  • Constructor Details

    • ActivityIndicationInteractionsPair

      public ActivityIndicationInteractionsPair(org.apache.wicket.model.IModel<String> activityIndicationIcon, org.apache.wicket.model.IModel<String> activityIndicationTitle, boolean disableOnActivity)
  • Method Details

    • action

      public void action(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.
      Specified by:
      action in interface ComponentInteractionsPair<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

      public void reaction(AjaxIconButton component, org.apache.wicket.ajax.AjaxRequestTarget request)
      Restores the original icon and title back to the button.
      Specified by:
      reaction in interface ComponentInteractionsPair<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:
      detach in interface org.apache.wicket.model.IDetachable