|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.TagUtils
public class TagUtils
Some utils to handle tags which otherwise would bloat the Tag API.
| Field Summary | |
|---|---|
static IValueMap |
ATTRIBUTES_SEPARATORS
A map that keeps the separators which should be used for the different HTML element attributes. |
| Constructor Summary | |
|---|---|
TagUtils()
Constructor |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IValueMap ATTRIBUTES_SEPARATORS
| Constructor Detail |
|---|
public TagUtils()
| Method Detail |
|---|
public static final boolean isBodyTag(ComponentTag tag)
tag -
public static final boolean isHeadTag(MarkupElement elem)
elem -
public static final boolean isWicketTag(IMarkupFragment markup,
int i)
markup - i -
public static final boolean isExtendTag(IMarkupFragment markup,
int i)
markup - i -
public static final boolean isWicketHeadTag(MarkupElement elem)
elem -
public static final boolean isWicketHeaderItemsTag(MarkupElement elem)
elem -
public static final boolean isWicketBodyTag(MarkupElement elem)
elem -
public static final 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 applied
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||