Class 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:
    Serialized Form
    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      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
    • Field Detail

      • 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.
    • Method Detail

      • 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