public class DropdownButton extends DropdownBase
<b:DropdownButton text="I am the Caption">
<b:NavHeader>Header</b:NavHeader>
<b:NavLink>Link 1</b:NavLink>
<b:NavLink>Link 2</b:NavLink>
</b:DropdownButton>
Dropdown
,
SplitDropdownButton
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
DropdownButton()
Creates a DropdownButton without a caption.
|
DropdownButton(String caption)
Creates a DropdownButton with the given caption.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler) |
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 button's icon.
|
void |
setIconPosition(IconPosition position)
Set icon position , left or right
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
void |
setSize(ButtonSize size)
Sets the button's size.
|
void |
setType(ButtonType type)
Sets the button's type.
|
add, addChangeHandler, 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 DropdownButton()
public DropdownButton(String caption)
caption
- the button's captionprotected IconAnchor createTrigger()
IconAnchor
or a subtype.createTrigger
in class DropdownBase
public void setSize(ButtonSize size)
size
- the button's sizepublic void setType(ButtonType type)
type
- the button's typepublic void setIcon(IconType type)
type
- the icon's typepublic void setBaseIcon(BaseIconType type)
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
addClickHandler
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.
public void setIconPosition(IconPosition position)
position
- icon's positionCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.