public class AssertTagNameBehavior
extends org.apache.wicket.behavior.Behavior
AssertTagNameBehavior asserts that one of a list of given tag
names to be present. If you add this behavior there is no need to override
Component.onComponentTag(org.apache.wicket.markup.ComponentTag).
To assert a div and a span tag just add an
AssertTagNameBehavior with both tag names.
add(new AssertTagNameBehavior("div", "span"));
| Constructor and Description |
|---|
AssertTagNameBehavior(org.apache.wicket.model.IModel<Set<? extends String>> tagNames)
Deprecated.
Constructor.
|
AssertTagNameBehavior(Set<String> tagNames)
Deprecated.
Constructor.
|
AssertTagNameBehavior(String... tagNames)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach(org.apache.wicket.Component component)
Deprecated.
|
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
Deprecated.
Assert the html tag names to be present.
|
public AssertTagNameBehavior(String... tagNames)
tagNames - a list of html tag namespublic AssertTagNameBehavior(Set<String> tagNames)
tagNames - a set of html tag namespublic void detach(org.apache.wicket.Component component)
detach in class org.apache.wicket.behavior.Behaviorpublic void onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.behavior.BehaviorCopyright © 2013 agilecoders.de. All Rights Reserved.