public class Dropdown extends DropdownBase
<b:Dropdown text="I am the Caption">
<b:NavHeader>Header</b:NavHeader>
<b:NavLink>Link 1</b:NavLink>
<b:NavLink>Link 2</b:NavLink>
</b:Dropdown>
DropdownButton
,
SplitDropdownButton
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
trigger
DEBUG_ID_PREFIX
Constructor and Description |
---|
Dropdown()
Creates an empty Dropdown without a caption.
|
Dropdown(String caption)
Creates an empty Dropdown with the given caption.
|
Modifier and Type | Method and Description |
---|---|
protected IconAnchor |
createTrigger()
Implement this method to create the trigger appropriate for your widget.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
void |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
add, addChangeHandler, addClickHandler, addCustomTrigger, addWidget, clear, getLastSelectedNavLink, getMenuWiget, getText, getTriggerWidget, isDropup, onLoad, setDropup, setRightDropdown, setText
addStyle, insert, removeStyle, setHideOn, setShowOn, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
iterator, remove
public Dropdown()
protected IconAnchor createTrigger()
IconAnchor
or a subtype.createTrigger
in class DropdownBase
public void setIconSize(IconSize size)
Default is DEFAULT.
size
- the new size.public void setCustomIconStyle(String customIconStyle)
It sets css class name to <i> tag. You can set any icons style.
Copyright © 2012 gwtbootstrap. All Rights Reserved.