java.lang.Object
org.apache.wicket.markup.MarkupElement
org.apache.wicket.markup.HtmlSpecialTag
- Author:
- Juergen Donnerstag
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHtmlSpecialTag
(XmlTag tag, IXmlPullParser.HttpTagType httpTagType) Construct. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalTo
(MarkupElement element) This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet.final boolean
getFlag
(int flag) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.Gets httpTagType.final int
Gets the length of the tag in characters.final int
getPos()
final XmlTag.TagType
getType()
final XmlTag
final boolean
isClose()
final boolean
isOpen()
final boolean
void
onBeforeRender
(Component component, MarkupStream markupStream) For subclasses to override.final void
setFlag
(int flag, boolean set) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.final String
toString()
Converts this object to a string representation.final String
Converts this object to a string representation including useful information for debuggingfinal void
writeOutput
(Response response, boolean stripWicketAttributes, String namespace) Write the tag to the responseMethods inherited from class org.apache.wicket.markup.MarkupElement
closes
-
Field Details
-
xmlTag
The underlying xml tag
-
-
Constructor Details
-
HtmlSpecialTag
Construct.- Parameters:
tag
- The underlying xml taghttpTagType
-
-
-
Method Details
-
setFlag
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!- Parameters:
flag
- The flag to setset
- True to turn the flag on, false to turn it off
-
getFlag
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!- Parameters:
flag
- The flag to test- Returns:
- True if the flag is set
-
getLength
Gets the length of the tag in characters.- Returns:
- The tag's length
-
getPos
- Returns:
- Tag location (index in input string)
- See Also:
-
getType
- Returns:
- the tag type (OPEN, CLOSE or OPEN_CLOSE).
-
isClose
- Returns:
- True if this tag is a close tag
- See Also:
-
isOpen
- Returns:
- True if this tag is an open tag
- See Also:
-
isOpenClose
- Returns:
- True if this tag is an open and a close tag
- See Also:
-
toCharSequence
- Specified by:
toCharSequence
in classMarkupElement
- Returns:
- Gets the charsequence representation of this element
-
toString
Converts this object to a string representation. -
writeOutput
Write the tag to the response- Parameters:
response
- The response to write tostripWicketAttributes
- if true, wicket:id are removed from outputnamespace
- Wicket's namespace to use
-
toUserDebugString
Converts this object to a string representation including useful information for debugging- Specified by:
toUserDebugString
in classMarkupElement
- Returns:
- String version of this object
-
getXmlTag
- Returns:
- Returns the underlying xml tag.
-
equalTo
Description copied from class:MarkupElement
This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet. Also, this method only compares the namespace, name and attributes of the given MarkupElements.- Specified by:
equalTo
in classMarkupElement
- Parameters:
element
- The markup element to compare with- Returns:
- True if the other element equals this one
-
onBeforeRender
For subclasses to override. Gets called just before a Component gets rendered. It is guaranteed that the markupStream is set on the Component and determineVisibility is not yet called.- Parameters:
component
- The component that is about to be renderedmarkupStream
- The current amrkup stream
-
getHttpTagType
Gets httpTagType.- Returns:
- httpTagType
-