Module org.apache.wicket.extensions
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
Trap focus inside a component's markup.
- Author:
- svenmeier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Resource key for a CSS class to be applied to the current active focus-trap. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
CSS_CURRENT_KEY
Resource key for a CSS class to be applied to the current active focus-trap.
-
-
Constructor Details
-
TrapFocusBehavior
public TrapFocusBehavior()
-
-
Method Details
-
renderHead
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
-