Example #1
0
 /**
  * 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;
   }
 }
Example #2
0
 /**
  * Constructor
  *
  * @param tag The ComponentTag tag which this wicket tag is based upon.
  */
 public ComponentTag(final ComponentTag tag) {
   this(tag.getXmlTag());
   tag.copyPropertiesTo(this);
 }