001package com.github.gwtbootstrap.client.ui; 002 003import com.github.gwtbootstrap.client.ui.base.IconAnchor; 004import com.github.gwtbootstrap.client.ui.constants.Constants; 005 006/** 007 * Dropdown's Submenu 008 * 009 * @since 2.2.1.0 010 * @author ohashi keisuke 011 * 012 */ 013public class DropdownSubmenu extends Dropdown { 014 015 /** 016 * Create a Empty widget. 017 */ 018 public DropdownSubmenu() { 019 this(""); 020 } 021 022 /** 023 * Creates an empty DropdownSubmenu with the given caption. 024 * 025 * @param caption 026 * the dropdown's caption 027 */ 028 public DropdownSubmenu(String caption) { 029 super(caption); 030 setStyleName(Constants.DROPDOWN_SUBMENU); 031 } 032 033 /** 034 * {@inheritDoc} 035 * Create Trigger without caret 036 */ 037 @Override 038 protected IconAnchor createTrigger() { 039 final IconAnchor trigger = new IconAnchor(); 040 return trigger; 041 } 042 043}