package lemming.ui;

import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.MarkupStream;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

import java.io.Serializable;

/**
 * A label for title tags of pages.
 */
public class TitleLabel extends Label {
    /*
     * Creates a title label.
     */
    public TitleLabel(IModel<?> model) {
        super("title", model);
    }

    /**
     * Creates a title label.
     *
     * @param label text of the label
     */
    public TitleLabel(Serializable label) {
        this(Model.of(label));
    }

    @Override
    public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
        String label = getDefaultModelObjectAsString();
        String branding = getString("TitleLabel.branding");
        replaceComponentTagBody(markupStream, openTag, label + branding);
    }
}

@@ -641,24 +641,164 @@
 l));%0A    %7D%0A%0A
+    /**%0A     * Processes the component tag body.%0A     *%0A     * @param markupStream markup stream%0A     * @param openTag the open tag%0A     */%0A
     @Overrid

Add a missing comment to class TitleLabel.