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 */ 016package com.github.gwtbootstrap.client.ui; 017 018import com.github.gwtbootstrap.client.ui.constants.Constants; 019 020//@formatter:off 021/** 022 * FluidContainers (and {@link Container Containers} are the largest panels 023 * in the Bootstrap grid system. 024 * 025 * <p> 026 * They contain almost all the other widgets (mentionable exceptions are {@link 027 * Navbar fixed Navbars}) in {@link FluidRow FluidRows} and 028 * {@link Column Columns}. In contrast to Containers, FluidContainers adapt 029 * their width to the width of the browser window. 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 Carlos Alexandro Becker 048 * 049 * @see <a href="http://twitter.github.com/bootstrap/scaffolding.html#layouts">Bootstrap documentation</a> 050 * @see Row 051 */ 052//@formatter:on 053public class FluidContainer extends Container { 054 055 /** 056 * Creates an empty FluidContainer. 057 */ 058 public FluidContainer() { 059 setStylePrimaryName(Constants.CONTAINER_FLUID); 060 } 061}