package com.svenjacobs.gwtbootstrap3.client.ui;

/*
 * #%L
 * GwtBootstrap3
 * %%
 * Copyright (C) 2013 Sven Jacobs
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import com.google.gwt.uibinder.client.UiConstructor;
import com.google.gwt.user.client.DOM;
import com.svenjacobs.gwtbootstrap3.client.ui.base.AbstractTextWidget;

/**
 * @author Sven Jacobs
 */
public class Heading extends AbstractTextWidget {

    @UiConstructor
    public Heading(final int size) {
        super(DOM.createElement("h" + size));
        assert size > 0 && size < 7 : "Wrong heading size (must be between 1 and 6)";
    }
}

@@ -930,17 +930,54 @@
 idget %7B%0A
+%09private Small subtext = new Small();
 %0A
-
     @UiC
@@ -1070,16 +1070,72 @@
 size));%0A
+        getElement().appendChild(subtext.getElement());%0A
         
@@ -1218,10 +1218,108 @@
 ;%0A    %7D%0A
+    %0A    public void setSubtext(final String subtext) %7B%0A    %09this.subtext.setText(subtext);%0A    %7D%0A
 %7D%0A

Add subtext to heading