Package org.apache.wicket.behavior
Class OutputMarkupContainerClassNameBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.OutputMarkupContainerClassNameBehavior
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IComponentAwareHeaderContributor
,IClusterable
A behavior that applies to MarkupContainer
s with associated markup.
It adds an attribute named namespace:className to
the markup element of ComponentTag
with value the fully
qualified class name of the markup container.
It is used internally by Wicket when DebugSettings.ClassOutputStrategy.TAG_ATTRIBUTE
is active.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isTemporary
(Component component) Specifies whether or not this behavior is temporary.void
onComponentTag
(Component component, ComponentTag tag) Called any time a component that has this behavior registered is rendering the component tag.Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead, unbind
-
Field Details
-
INSTANCE
-
-
Method Details
-
onComponentTag
Description copied from class:Behavior
Called any time a component that has this behavior registered is rendering the component tag.- Overrides:
onComponentTag
in classBehavior
- Parameters:
component
- the component that renders this tag currentlytag
- the tag that is rendered
-
isTemporary
Description copied from class:Behavior
Specifies whether or not this behavior is temporary. Temporary behaviors are removed at the end of request and never reattached. Such behaviors are useful for modifying component rendering only when it renders next. Usecases include javascript effects, initial clientside dom setup, etc.- Overrides:
isTemporary
in classBehavior
- Returns:
- true if this behavior is temporary
-