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; 017import com.github.gwtbootstrap.client.ui.base.ListItem; 018import com.github.gwtbootstrap.client.ui.constants.Constants; 019 020 021//@formatter:off 022/** 023 * Horizontal divider for navigation menus. 024 * 025 * <p> 026 * <h3>UiBinder Usage:</h3> 027 * 028 * <pre> 029 * {@code 030 * <b:NavList> 031 * <b:NavLink>Link before divider</b:NavLink> 032 * <b:Divider /> 033 * <b:NavLink>Link after divider</b:NavLink> 034 * </b:NavList> 035 * } 036 * </pre> 037 * </p> 038 * 039 * @since 2.0.4.0 040 * 041 * @author Dominik Mayer 042 * 043 * @see <a href="http://getbootstrap.com/2.3.2/components.html#navs">Bootstrap documentation</a> 044 * @see NavList 045 * @see WellNavList 046 * @see Dropdown 047 * @see VerticalDivider 048 */ 049//@formatter:on 050public class Divider extends ListItem { 051 052 /** 053 * Creates a new Divider. 054 */ 055 public Divider() { 056 setStyleName(Constants.DIVIDER); 057 } 058}