|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.markup.MarkupElement wicket.markup.ComponentTag
A subclass of MarkupElement which represents a "significant" markup tag, such as a component open tag. Insignificant markup tags (those which are merely concerned with markup formatting operations and do not denote components or component nesting) are coalesced into instances of RawMarkup (also a subclass of MarkupElement).
Field Summary | |
protected ComponentTag |
closes
Assuming this is a open (or open-close) tag, 'closes' refers to the ComponentTag which closes it. |
static java.lang.String |
DEFAULT_WICKET_NAMESPACE
Standard component id attribute always available for components regardless of user ApplicationSettings for id attribute; value == 'wicket'. |
protected XmlTag |
xmlTag
The underlying xml tag |
Constructor Summary | |
ComponentTag(XmlTag tag)
Construct. |
Method Summary | |
boolean |
closes(MarkupElement open)
Gets whether this tag closes the provided open tag. |
void |
enableAutolink(boolean autolink)
If autolink is set to true, href attributes will automatically be converted into Wicket bookmarkable URLs. |
AttributeMap |
getAdditionalAttributes()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
ValueMap |
getAttributes()
|
java.lang.String |
getId()
Get the tag's component id |
int |
getLength()
Gets the length of the tag in characters. |
java.lang.String |
getName()
|
boolean |
getNameChanged()
|
java.lang.String |
getNamespace()
|
ComponentTag |
getOpenTag()
If set, return the corresponding open tag (ComponentTag). |
int |
getPos()
|
java.lang.String |
getString(java.lang.String key)
|
XmlTag.Type |
getType()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
(package private) XmlTag |
getXmlTag()
|
boolean |
hasEqualTagName(ComponentTag tag)
Compare tag name including namespace |
boolean |
isAutolinkEnabled()
True if autolink is enabled and the tag contains a href attribute. |
boolean |
isClose()
|
boolean |
isOpen()
|
boolean |
isOpen(java.lang.String id)
|
boolean |
isOpenClose()
|
boolean |
isOpenClose(java.lang.String id)
|
void |
makeImmutable()
Makes this tag object immutable by making the attribute map unmodifiable. |
ComponentTag |
mutable()
Gets this tag if it is already mutable, or a mutable copy of this tag if it is immutable. |
void |
put(java.lang.String key,
boolean value)
|
void |
put(java.lang.String key,
int value)
|
void |
put(java.lang.String key,
java.lang.String value)
|
void |
put(java.lang.String key,
StringValue value)
|
void |
putAll(java.util.Map map)
|
void |
remove(java.lang.String key)
|
boolean |
requiresCloseTag()
Gets whether this tag does not require a closing tag. |
void |
setId(java.lang.String id)
Set the component's id. |
void |
setName(java.lang.String name)
|
void |
setNamespace(java.lang.String namespace)
|
void |
setOpenTag(ComponentTag tag)
Assuming this is a close tag, assign it's corresponding open tag. |
void |
setType(XmlTag.Type type)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
java.lang.String |
syntheticCloseTagString()
|
java.lang.String |
toString()
Converts this object to a string representation. |
java.lang.String |
toUserDebugString()
Converts this object to a string representation including useful information for debugging |
void |
writeOutput(Response response,
boolean stripWicketAttributes,
java.lang.String namespace)
Write the tag to the response |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_WICKET_NAMESPACE
protected ComponentTag closes
protected final XmlTag xmlTag
Constructor Detail |
public ComponentTag(XmlTag tag)
tag
- The underlying xml tagMethod Detail |
public final boolean closes(MarkupElement open)
closes
in class MarkupElement
open
- The open tag
public final void enableAutolink(boolean autolink)
autolink
- enable/disable automatic href conversionpublic final ValueMap getAttributes()
XmlTag.getAttributes()
public final java.lang.String getId()
public final int getLength()
public final java.lang.String getName()
XmlTag.getName()
public final boolean getNameChanged()
XmlTag.getNameChanged()
public final java.lang.String getNamespace()
XmlTag.getNamespace()
public final ComponentTag getOpenTag()
public final int getPos()
XmlTag.getPos()
public final java.lang.String getString(java.lang.String key)
key
- The key
XmlTag.getString(String)
public final XmlTag.Type getType()
XmlTag.getType()
public final boolean isAutolinkEnabled()
public final boolean isClose()
XmlTag.isClose()
public final boolean isOpen()
XmlTag.isOpen()
public final boolean isOpen(java.lang.String id)
id
- Required component id
XmlTag.isOpen()
public final boolean isOpenClose()
XmlTag.isOpenClose()
public final boolean isOpenClose(java.lang.String id)
id
- Required component id
XmlTag.isOpenClose()
public boolean hasEqualTagName(ComponentTag tag)
tag
-
public final void makeImmutable()
public ComponentTag mutable()
public final void put(java.lang.String key, boolean value)
key
- The keyvalue
- The valueXmlTag.put(String, boolean)
public final void put(java.lang.String key, int value)
key
- The keyvalue
- The valueXmlTag.put(String, int)
public final void put(java.lang.String key, java.lang.String value)
key
- The keyvalue
- The valueXmlTag.put(String, String)
public final void put(java.lang.String key, StringValue value)
key
- The keyvalue
- The valueXmlTag.put(String, StringValue)
public final void putAll(java.util.Map map)
map
- a key/value mapXmlTag.putAll(Map)
public final void remove(java.lang.String key)
key
- The key to removeXmlTag.remove(String)
public final boolean requiresCloseTag()
public final void setId(java.lang.String id)
id
- The component's id assigned to the tag.public final void setName(java.lang.String name)
name
- New tag nameXmlTag.setName(String)
public final void setNamespace(java.lang.String namespace)
namespace
- New tag name namespaceXmlTag.setNamespace(String)
public final void setOpenTag(ComponentTag tag)
tag
- the open-tag
java.lang.RuntimeException
- if 'this' is not a close tagpublic final void setType(XmlTag.Type type)
type
- The new typepublic final java.lang.String syntheticCloseTagString()
public final java.lang.String toString()
public final void writeOutput(Response response, boolean stripWicketAttributes, java.lang.String namespace)
response
- The response to write tostripWicketAttributes
- if true, wicket:id are removed from outputnamespace
- Wicket's namespace to usepublic final java.lang.String toUserDebugString()
toUserDebugString
in class MarkupElement
final XmlTag getXmlTag()
public final AttributeMap getAdditionalAttributes()
Get additional attributes contributed by <wicket:param>
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |