org.apache.wicket.markup
Class WicketTag

java.lang.Object
  extended by org.apache.wicket.markup.MarkupElement
      extended by org.apache.wicket.markup.ComponentTag
          extended by org.apache.wicket.markup.WicketTag

public class WicketTag
extends ComponentTag

WicketTag extends ComponentTag and will be created 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 conform namespace for such tags.

Note 2: The namespace name is configurable. E.g. <html xmlns:wcn="http://wicket">

Author:
Juergen Donnerstag

Field Summary
 
Fields inherited from class org.apache.wicket.markup.ComponentTag
RENDER_RAW, xmlTag
 
Constructor Summary
WicketTag(ComponentTag tag)
          Constructor
WicketTag(XmlTag tag)
          Constructor
 
Method Summary
 String getNameAttribute()
          Deprecated. This method is obsolete since a long time
 boolean isBodyTag()
           
 boolean isBorderTag()
           
 boolean isChildTag()
           
 boolean isContainerTag()
           
 boolean isEnclosureTag()
           
 boolean isExtendTag()
           
 boolean isFragementTag()
          Deprecated. Use isFragmentTag() instead
 boolean isFragmentTag()
           
 boolean isHeaderItemsTag()
           
 boolean isHeadTag()
           
 boolean isLinkTag()
           
 boolean isMajorWicketComponentTag()
           
 boolean isMessageTag()
           
 boolean isPanelTag()
           
 boolean isRemoveTag()
           
 ComponentTag mutable()
          Gets this tag if it is already mutable, or a mutable copy of this tag if it is immutable.
 
Methods inherited from class org.apache.wicket.markup.ComponentTag
addBehavior, append, closes, enableAutolink, equalTo, getAttribute, getAttributes, getBehaviors, getFlag, getId, getLength, getMarkupClass, getName, getNamespace, getOpenTag, getPos, getType, getUserData, getXmlTag, hasBehaviors, hasNoCloseTag, isAutoComponentTag, isAutolinkEnabled, isClose, isIgnore, isOpen, isOpen, isOpenClose, isOpenClose, makeImmutable, onBeforeRender, put, put, put, put, putAll, putInternal, remove, requiresCloseTag, setAutoComponentTag, setFlag, setHasNoCloseTag, setId, setIgnore, setMarkupClass, setModified, setName, setNamespace, setOpenTag, setType, setUserData, syntheticCloseTagString, toCharSequence, toString, toUserDebugString, writeOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WicketTag

public WicketTag(XmlTag tag)
Constructor

Parameters:
tag - The XML tag which this wicket tag is based upon.

WicketTag

public WicketTag(ComponentTag tag)
Constructor

Parameters:
tag - The ComponentTag tag which this wicket tag is based upon.
Method Detail

getNameAttribute

@Deprecated
public final String getNameAttribute()
Deprecated. This method is obsolete since a long time

Get the tag's name attribute: e.g. <wicket:region name=panel>

Returns:
The tag's name attribute

isContainerTag

public final boolean isContainerTag()
Returns:
True, if tag name equals 'wicket:container'

isLinkTag

public final boolean isLinkTag()
Returns:
True, if tag name equals 'wicket:link'

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'

isHeadTag

public final boolean isHeadTag()
Returns:
True, if tag name equals 'wicket:head'

isHeaderItemsTag

public final boolean isHeaderItemsTag()
Returns:
True, if tag name equals 'wicket:header-items'

isMessageTag

public final boolean isMessageTag()
Returns:
True, if tag name equals 'wicket:message'

isPanelTag

public final boolean isPanelTag()
Returns:
True, if tag name equals 'wicket:panel'

isBorderTag

public final boolean isBorderTag()
Returns:
True, if tag name equals 'wicket:border'

isFragementTag

@Deprecated
public final boolean isFragementTag()
Deprecated. Use isFragmentTag() instead

Returns:
True if <wicket:fragment>

isFragmentTag

public final boolean isFragmentTag()
Returns:
True if <wicket:fragment>

isEnclosureTag

public final boolean isEnclosureTag()
Returns:
true if <wicket:enclosure>

isMajorWicketComponentTag

public final boolean isMajorWicketComponentTag()
Returns:
True if , ,

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 © 2006–2016 Apache Software Foundation. All rights reserved.