Package eu.webtoolkit.jwt
Class WSplitButton
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WWidget
-
- eu.webtoolkit.jwt.WCompositeWidget
-
- eu.webtoolkit.jwt.WSplitButton
-
public class WSplitButton extends WCompositeWidget
A split button.A split button combines a button and a drop down menu. Typically, the button represents an action, with related alternative actions accessible from the drop down menu.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Field Summary
-
Fields inherited from class eu.webtoolkit.jwt.WWidget
WT_GETEXTRAMS_JS
-
-
Constructor Summary
Constructors Constructor Description WSplitButton()Constructor.WSplitButton(WContainerWidget parentContainer)Constructor.WSplitButton(java.lang.CharSequence label)Constructor passing the label.WSplitButton(java.lang.CharSequence label, WContainerWidget parentContainer)Constructor passing the label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WPushButtongetActionButton()Returns the action button.WPushButtongetDropDownButton()Returns the drop down button.WPopupMenugetMenu()Returns the menu for the drop-down button.protected voidrender(java.util.EnumSet<RenderFlag> flags)Renders the widget.voidsetMenu(WPopupMenu popupMenu)Sets the menu for the drop-down button.-
Methods inherited from class eu.webtoolkit.jwt.WCompositeWidget
addStyleClass, boxBorder, boxPadding, callJavaScriptMember, doJavaScript, enableAjax, find, findById, getAttributeValue, getBaseZIndex, getChildren, getClearSides, getDecorationStyle, getFloatSide, getHeight, getId, getImplementation, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getObjectName, getOffset, getPositionScheme, getScrollVisibilityMargin, getStyleClass, getTabIndex, getTakeImplementation, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasFocus, hasStyleClass, isCanReceiveFocus, isDisabled, isEnabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isScrollVisibilityEnabled, isScrollVisible, isSetFirstFocus, isThemeStyleEnabled, isVisible, load, propagateSetEnabled, propagateSetVisible, refresh, remove, removeStyleClass, removeWidget, resize, scrollVisibilityChanged, setAttributeValue, setCanReceiveFocus, setClearSides, setDecorationStyle, setDeferredToolTip, setDisabled, setFloatSide, setFocus, setHidden, setHiddenKeepsGeometry, setId, setImplementation, setInline, setJavaScriptMember, setLineHeight, setMargin, setMaximumSize, setMinimumSize, setObjectName, setOffsets, setParentWidget, setPopup, setPositionScheme, setScrollVisibilityEnabled, setScrollVisibilityMargin, setSelectable, setStyleClass, setTabIndex, setThemeStyleEnabled, setToolTip, setVerticalAlignment
-
Methods inherited from class eu.webtoolkit.jwt.WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addJSignal, addStyleClass, animateHide, animateShow, applyThemeStyles, createJavaScript, disable, dropEvent, enable, getDropTouch, getJsRef, getParent, hide, htmlText, isExposed, isGlobalWidget, isLayoutSizeAware, isRendered, layoutSizeChanged, needsRerender, positionAt, positionAt, positionAt, positionAt, removeFromParent, removeStyleClass, render, resize, scheduleRender, scheduleRender, scheduleRender, scheduleThemeStyleApply, setClearSides, setDeferredToolTip, setFocus, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, tr
-
Methods inherited from class eu.webtoolkit.jwt.WObject
setFormData
-
-
-
-
Constructor Detail
-
WSplitButton
public WSplitButton(WContainerWidget parentContainer)
Constructor.
-
WSplitButton
public WSplitButton()
Constructor.
-
WSplitButton
public WSplitButton(java.lang.CharSequence label, WContainerWidget parentContainer)Constructor passing the label.
-
WSplitButton
public WSplitButton(java.lang.CharSequence label)
Constructor passing the label.
-
-
Method Detail
-
getActionButton
public WPushButton getActionButton()
Returns the action button.This is the button that represents the main action.
-
getDropDownButton
public WPushButton getDropDownButton()
Returns the drop down button.This represents the button that represents the drop-down action.
-
setMenu
public void setMenu(WPopupMenu popupMenu)
Sets the menu for the drop-down button.
-
getMenu
public WPopupMenu getMenu()
Returns the menu for the drop-down button.
-
render
protected void render(java.util.EnumSet<RenderFlag> flags)
Description copied from class:WWidgetRenders the widget.This function renders the widget (or an update for the widget), after this has been scheduled using
scheduleRender().The default implementation will render the widget by serializing changes to JavaScript and HTML. You may want to reimplement this widget if you have been postponing some of the layout / rendering implementation until the latest moment possible. In that case you should make sure you call the base implementation however.
- Overrides:
renderin classWCompositeWidget
-
-