public class TagUtils extends Object
Modifier and Type | Field and Description |
---|---|
static IValueMap |
ATTRIBUTES_SEPARATORS
A map that keeps the separators which should be used for the different HTML
element attributes.
|
Constructor and Description |
---|
TagUtils()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
copyAttributes(MarkupContainer component,
ComponentTag tag)
Copy attributes from e.g.
|
static IMarkupFragment |
findTagMarkup(IMarkupFragment fragment,
String id,
String tagName,
int streamOffset)
Find the markup fragment of a tag with wicket:id equal to
id starting at offset streamOffset . |
static boolean |
isBodyTag(ComponentTag tag) |
static boolean |
isExtendTag(IMarkupFragment markup,
int i) |
static boolean |
isHeadTag(MarkupElement elem) |
static boolean |
isWicketBodyTag(MarkupElement elem) |
static boolean |
isWicketBorderTag(MarkupElement elem) |
static boolean |
isWicketHeaderItemsTag(MarkupElement elem) |
static boolean |
isWicketHeadTag(MarkupElement elem) |
static boolean |
isWicketTag(IMarkupFragment markup,
int i) |
public static final IValueMap ATTRIBUTES_SEPARATORS
public static boolean isBodyTag(ComponentTag tag)
tag
- public static boolean isHeadTag(MarkupElement elem)
elem
- public static boolean isWicketTag(IMarkupFragment markup, int i)
markup
- i
- public static boolean isExtendTag(IMarkupFragment markup, int i)
markup
- i
- public static boolean isWicketHeadTag(MarkupElement elem)
elem
- public static boolean isWicketHeaderItemsTag(MarkupElement elem)
elem
- public static boolean isWicketBodyTag(MarkupElement elem)
elem
- public static boolean isWicketBorderTag(MarkupElement elem)
elem
- public static void copyAttributes(MarkupContainer component, ComponentTag tag)
component
- the markup container which attributes will be copiedtag
- the component tag where the attributes will be appliedpublic static final IMarkupFragment findTagMarkup(IMarkupFragment fragment, String id, String tagName, int streamOffset)
id
starting at offset streamOffset
.id
- The wicket:id of the tag being searched for.tagName
- The tag name of the tag being searched for.streamOffset
- The offset in the markup stream from which to start searching.IMarkupFragment
of the component tag if found, null
is not found.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.