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,
SplitDropdownButtonUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasWidgets.ForIsWidgetIndexedPanel.ForIsWidgettriggerDEBUG_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 |
setBaseIcon(BaseIconType type)
Sets the BaseType of the Icon.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
void |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconPosition(IconPosition position)
Set icon position , left or right
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
add, addChangeHandler, addClickHandler, addCustomTrigger, addWidget, clear, getLastSelectedNavLink, getMenuWiget, getText, getTriggerWidget, isDropup, onLoad, setDropup, setRightDropdown, setTextaddStyle, insert, removeStyle, setHideOn, setShowOn, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventiterator, removepublic Dropdown()
protected IconAnchor createTrigger()
IconAnchor or a subtype.createTrigger in class DropdownBasepublic void setBaseIcon(BaseIconType type)
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.
public void setIconPosition(IconPosition position)
position - icon's positionCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.