Class TrapFocusBehavior
- 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:
- 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.
-
Constructor Summary
Constructors Constructor Description TrapFocusBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
renderHead(Component component, IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.-
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.
-
-
Constructor Detail
-
TrapFocusBehavior
public TrapFocusBehavior()
-
-
Method Detail
-
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 interfaceIComponentAwareHeaderContributor
- Overrides:
renderHead
in classBehavior
- 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 interfaceresponse
- Response object
-
-