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.resources.Bootstrap;
019    
020    //@formatter:off
021    /**
022     * Row that adapts its size to the parent widget.
023     * 
024     * <p>
025     * Part of the Bootstrap Grid System. It extends {@link Row} so it can be used 
026     * in any place that Row can be used in. In contrast to the fixed Row, a
027     * FluidRow adapts its size to the parent widget. The {@link Column Columns} are
028     * resized to fit that width.
029     * </p>
030     * 
031     * <p>
032     * <h3>UiBinder Usage:</h3>
033     * 
034     * <pre>
035     * {@code 
036     * <b:FluidContainer>
037     *     <b:FluidRow>
038     *         <b:Column size="4">...</b:Column>
039     *         <b:Column size="8">...</b:Column>
040     *     </b:FluidRow>
041     * </b:FluidContainer>}
042     * </pre>
043     * </p>
044     * 
045     * @since 2.0.4.0
046     * 
047     * @author Dominik Mayer
048     * 
049     * @see <a href="http://twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem">Bootstrap documentation</a>
050     * @see FluidContainer
051     * @see Container
052     */
053    //@formatter:on
054    public class FluidRow extends Row {
055    
056            /**
057             * Creates an empty FluidRow.
058             */
059            public FluidRow() {
060                    this("");
061            }
062    
063            /**
064             * Creates a FluidRow with given html.
065             * 
066             * @param html
067             *            the row's content
068             */
069            public FluidRow(String html) {
070                    setStyleName(Bootstrap.row_fluid);
071            }
072    }