Example usage for org.apache.wicket.markup ComponentTag makeImmutable

List of usage examples for org.apache.wicket.markup ComponentTag makeImmutable

Introduction

In this page you can find the example usage for org.apache.wicket.markup ComponentTag makeImmutable.

Prototype

public final void makeImmutable() 

Source Link

Document

Makes this tag object immutable by making the attribute map unmodifiable.

Usage

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

private WicketWriter start(final ComponentTag open, final String id, final String wicketid,
        final ComponentTag close, final String... attrs) {
    raw(xhtml);/*from ww w. jav  a 2  s  .  c  o m*/
    if (id != null) {
        open.setId(id);
    }
    addAttributes(open.getAttributes(), wicketid, attrs);
    pushClose(open, close);
    open.makeImmutable();
    markups.add(open);
    return this;
}

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

private WicketWriter start(final ComponentTag open, final String id, final String wicketid,
        final ComponentTag close, final Iterable<IAttribute> attrs) {
    raw(xhtml);//w w  w . j  a  v a 2 s  .c  o  m
    if (id != null) {
        open.setId(id);
    }
    addAttributes(open.getAttributes(), wicketid, attrs);
    pushClose(open, close);
    open.makeImmutable();
    markups.add(open);
    return this;
}

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

protected void pushClose(final ComponentTag open, final ComponentTag close) {
    if (close != null) {
        close.makeImmutable();
        close.setOpenTag(open);/*from ww  w  .ja  va  2  s .c  o m*/
        tagStack.push(close);
    } else {
        open.setOpenTag(open);
    }
}