public class SplitDropdownButton extends DropdownBase implements HasClickHandlers, HasType<ButtonType>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
SplitDropdownButton()
Create an Empty Split Dropdown Button
|
SplitDropdownButton(String text)
Create an Empty Split Dropdown Button with text.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler) |
void |
addCustomTrigger(Widget w)
Add widget to trigger anchodr
|
protected IconAnchor |
createTrigger()
Implement this method to create the trigger appropriate for your widget.
|
String |
getText() |
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.
|
void |
setSize(ButtonSize size)
Set Button size
|
void |
setText(String text)
Sets the text of the dropdown trigger.
|
void |
setType(ButtonType type)
Sets the type of the widget.
|
add, addChangeHandler, addWidget, clear, getLastSelectedNavLink, getMenuWiget, getTriggerWidget, isDropup, onLoad, setDropup, setRightDropdown
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 SplitDropdownButton()
public SplitDropdownButton(String text)
text
- public void setText(String text)
setText
in interface HasText
setText
in class DropdownBase
public String getText()
getText
in interface HasText
getText
in class DropdownBase
protected IconAnchor createTrigger()
DropdownBase
IconAnchor
or a subtype.createTrigger
in class DropdownBase
public void setSize(ButtonSize size)
size
- button sizepublic void setType(ButtonType type)
setType
in interface HasType<ButtonType>
public void setBaseIcon(BaseIconType type)
setBaseIcon
in interface HasIcon
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
addClickHandler
in class DropdownBase
public void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize
in interface HasIcon
size
- the new size.@UiChild(tagname="customTrigger", limit=1) public void addCustomTrigger(Widget w)
DropdownBase
addCustomTrigger
in class DropdownBase
w
- added widgetpublic void setCustomIconStyle(String customIconStyle)
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle
in interface HasIcon
public void setIconPosition(IconPosition position)
setIconPosition
in interface HasIcon
position
- icon's positionCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.