/** * Gets this tag if it is already mutable, or a mutable copy of this tag if it is immutable. * * @return This tag if it is already mutable, or a mutable copy of this tag if it is immutable. */ public ComponentTag mutable() { if (xmlTag.isMutable()) { return this; } else { ComponentTag tag = new ComponentTag(xmlTag.mutable()); copyPropertiesTo(tag); return tag; } }
/** * Constructor * * @param tag The ComponentTag tag which this wicket tag is based upon. */ public ComponentTag(final ComponentTag tag) { this(tag.getXmlTag()); tag.copyPropertiesTo(this); }