java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.extensions.ajax.markup.html.modal.TrapFocusBehavior
All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable

public class TrapFocusBehavior extends Behavior
Trap focus inside a component's markup.
Author:
svenmeier
See Also:
  • Field Details

    • CSS_CURRENT_KEY

      public static final String CSS_CURRENT_KEY
      Resource key for a CSS class to be applied to the current active focus-trap.
  • Constructor Details

  • Method Details

    • renderHead

      public void renderHead(Component component, IHeaderResponse response)
      Description copied from class: Behavior
      Render to the web response whatever the component wants to contribute to the head section.
      Specified by:
      renderHead in interface IComponentAwareHeaderContributor
      Overrides:
      renderHead in class Behavior
      Parameters:
      component - component which is contributing to the response. This parameter is here to give the component as the context for component-awares implementing this interface
      response - Response object