001    /*
002     *  Copyright 2012 GWT-Bootstrap
003     *
004     *  Licensed under the Apache License, Version 2.0 (the "License");
005     *  you may not use this file except in compliance with the License.
006     *  You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     *  Unless required by applicable law or agreed to in writing, software
011     *  distributed under the License is distributed on an "AS IS" BASIS,
012     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     *  See the License for the specific language governing permissions and
014     *  limitations under the License.
015     */
016    package com.github.gwtbootstrap.client.ui;
017    
018    import com.github.gwtbootstrap.client.ui.base.HtmlWidget;
019    import com.github.gwtbootstrap.client.ui.resources.Bootstrap;
020    
021    //@formatter:off
022    /**
023     * Simple wrapper for an HTML {@code <footer>} tag.
024     * <p>
025     * Doesn't have any special formatting.
026     * </p>
027     * 
028     * <p>
029     * <h3>UiBinder Usage:</h3>
030     * 
031     * <pre>
032     * {@code 
033     * <b:Footer>
034     *     <g:Label>Some text</g:Label>
035     * </b:Footer>}
036     * </pre>
037     * </p>
038     * 
039     * @since 2.0.4.0
040     * 
041     * @author Dominik Mayer
042     * @author ohashi keisuke
043     */
044    //@formatter:on
045    public class Footer extends HtmlWidget {
046    
047            // TODO: No nice style in bootstrap. Delete?
048            /**
049             * Creates an empty Footer.
050             */
051            public Footer() {
052                    this("");
053            }
054            
055            /**
056             * Creates a widget with the html.
057             * @param html content html
058             */
059            public Footer(String html) {
060                    super("footer" , html);
061                    setStyleName(Bootstrap.footer);
062            }
063    
064    }