wicket.markup
Class WicketTag
java.lang.Object
wicket.markup.MarkupElement
wicket.markup.ComponentTag
wicket.markup.WicketTag
- public final class WicketTag
- extends ComponentTag
WicketTag extends ComponentTag and will be createtd by a MarkupParser
whenever it parses a tag in the wicket namespace. By default, this namespace
is "wicket", so wicket tags are then of the form <wicket:*>
Note 1: you need to add an XHTML doctype to your markup and use <html
xmlns:wicket> to create a XHTML conformant namespace for such tags.
Note 2: The namespace name is configurable through ApplicationSettings.
- Author:
- Juergen Donnerstag
- See Also:
ApplicationSettings.setWicketNamespace(String)
| Methods inherited from class wicket.markup.ComponentTag |
closes, enableAutolink, getAttributes, getId, getLength, getName, getNameChanged, getNamespace, getOpenTag, getPos, getString, getType, isAutolinkEnabled, isClose, isOpen, isOpen, isOpenClose, isOpenClose, makeImmutable, put, put, put, put, putAll, remove, requiresCloseTag, setId, setName, setOpenTag, setType, syntheticCloseTagString, toString, toString, toUserDebugString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WicketTag
public WicketTag(XmlTag tag)
- Constructor
- Parameters:
tag - The XML tag which this component tag is based upon.
getNameAttribute
public final java.lang.String getNameAttribute()
- Get the tag's name attribute: e.g. <wicket:region name=panel>
- Returns:
- The tag's name attribute
isComponentTag
public final boolean isComponentTag()
- Returns:
- True, if tag name equals 'wicket:component'
isLinkTag
public final boolean isLinkTag()
- Returns:
- True, if tag name equals 'wicket:link'
isParamTag
public final boolean isParamTag()
- Returns:
- True, if tag name equals 'wicket:param'
isRemoveTag
public final boolean isRemoveTag()
- Returns:
- True, if tag name equals 'wicket:remove'
isBodyTag
public final boolean isBodyTag()
- Returns:
- True, if tag name equals 'wicket:body'
isChildTag
public final boolean isChildTag()
- Returns:
- True, if tag name equals 'wicket:child'
isExtendTag
public final boolean isExtendTag()
- Returns:
- True, if tag name equals 'wicket:extend'
mutable
public ComponentTag mutable()
- Gets this tag if it is already mutable, or a mutable copy of this tag if
it is immutable.
- Overrides:
mutable in class ComponentTag
- Returns:
- This tag if it is already mutable, or a mutable copy of this tag
if it is immutable.
Copyright © 2004-2005 Wicket developers. All Rights Reserved.