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.DivWidget;
019 import com.github.gwtbootstrap.client.ui.constants.Constants;
020
021 //@formatter:off
022 /**
023 * Containers (and {@link FluidContainer FluidContainers} are the largest panels
024 * in the Bootstrap grid system.
025 *
026 * <p>
027 * They contain almost all the other widgets (mentionable exceptions are {@link
028 * Navbar fixed Navbars}) in {@link Row Rows} and {@link Column Columns}. In
029 * contrast to FluidContainers, Containers have a fixed width of (by default)
030 * 940 px.
031 *
032 * <p>
033 * <h3>UiBinder Usage:</h3>
034 *
035 * <pre>
036 * {@code
037 * <b:Container>
038 * <b:Row>
039 * <b:Column size="4">...</b:Column>
040 * <b:Column size="8">...</b:Column>
041 * </b:Row>
042 * </b:Container>}
043 * </pre>
044 * </p>
045 *
046 * @since 2.0.4.0
047 *
048 * @author Carlos Alexandro Becker
049 *
050 * @see <a href="http://twitter.github.com/bootstrap/scaffolding.html#layouts">Bootstrap documentation</a>
051 * @see FluidRow
052 */
053 //@formatter:on
054 public class Container extends DivWidget {
055
056 /**
057 * Creates an empty Container.
058 */
059 public Container() {
060 setStylePrimaryName(Constants.CONTAINER);
061 }
062 }