001/*
002 * #%L
003 * GwtMaterial
004 * %%
005 * Copyright (C) 2015 - 2017 GwtMaterialDesign
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 * 
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 * 
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package gwt.material.design.client.ui;
021
022import com.google.gwt.dom.client.Document;
023import gwt.material.design.client.base.MaterialWidget;
024import gwt.material.design.client.constants.CssName;
025
026//@formatter:off
027
028/**
029 * MaterialNavContent is a child of {@link MaterialNavBar} that provides an area wherein
030 * we can attach any widget to be placed in this extension panel.
031 * <p>
032 * <h3>UiBinder Usage:</h3>
033 * <pre>
034 * {@code
035 * <m:MaterialNavBar ui:field="navBar" layoutPosition="FIXED" height="auto" activates="sidenav" backgroundColor="PURPLE">
036 *      <m:MaterialNavBrand fontSize="2.2em" paddingLeft="60" text="My Files" />
037 *      <m:MaterialNavSection float="RIGHT">
038 *          <m:MaterialLink iconType="APPS" />
039 *          <m:MaterialLink iconType="REFRESH" />
040 *      </m:MaterialNavSection>
041 *      <m:MaterialNavContent paddingLeft="120" paddingTop="40" paddingBottom="20" >
042 *          <m:MaterialChip text="Extension" letter="E" backgroundColor="PURPLE_DARKEN_3" letterBackgroundColor="PURPLE_LIGHTEN_3" textColor="WHITE" />
043 *      </m:MaterialNavContent>
044 * </m:MaterialNavBar>
045 * }
046 * <pre>
047 * @author kevzlou7979
048 * @see <a href="http://gwtmaterialdesign.github.io/gwt-material-demo/#navbar">Material Nav Bar</a>
049 * @see <a href="https://material.io/guidelines/components/toolbars.html#">Material Design Specification</a>
050 */
051//@formatter:on
052public class MaterialNavContent extends MaterialWidget {
053
054    public MaterialNavContent() {
055        super(Document.get().createDivElement(), CssName.NAV_CONTENT);
056    }
057}