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.base.DivWidget; 019import com.github.gwtbootstrap.client.ui.constants.Constants; 020 021//@formatter:off 022/** 023 * A container for things hidden when the window width is too small. Has to be 024 * placed inside a {@link ResponsiveNavbar}. 025 * 026 * <p> 027 * <h3>UiBinder Usage:</h3> 028 * 029 * <pre> 030 * {@code 031 * <b:ResponsiveNavbar> 032 * <b:Brand>Bootstrap</b:Brand> 033 * <b:NavCollapse> 034 * <b:Nav> 035 * <b:NavLink>Link 1</b:NavLink> 036 * <b:NavLink>Link 2</b:NavLink> 037 * </b:Nav> 038 * <b:NavForm size="1" /> 039 * <b:Nav alignment="RIGHT"> 040 * <b:NavLink>Link 3</b:NavLink> 041 * </b:Nav> 042 * </b:NavCollapse> 043 * </b:ResponsiveNavbar> 044 * } 045 * </pre> 046 * </p> 047 * 048 * @since 2.0.4.0 049 * 050 * @author Dominik Mayer 051 * 052 * @see <a href="http://getbootstrap.com/2.3.2/components.html#navbar">Bootstrap documentation</a> 053 */ 054//@formatter:on 055public class NavCollapse extends DivWidget { 056 057 /** 058 * Creates an empty widget. 059 */ 060 public NavCollapse() { 061 super(Constants.NAV_COLLAPSE); 062 } 063 064}