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