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

public class TrapFocusBehavior extends org.apache.wicket.behavior.Behavior
Trap focus inside a component's markup.
Author:
svenmeier
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Resource key for a CSS class to be applied to the current active focus-trap.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
     

    Methods inherited from class org.apache.wicket.behavior.Behavior

    afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class org.apache.wicket.behavior.Behavior