SplitButton
Button containing a primary button and a popup opener button.
SplitButton is a Vaadin component that contains a primary button and a button that opens a popup. The popup can contain any Vaadin component or component container similarly than in PopupButton.
SplitButton has a dependency on PopupButton 1.2.1 that is included in the add-on package. If you use Maven the dependency is resolved automatically.
Sample code
SplitButton splitButton = new SplitButton("New Document"); // To use SplitButton with Chameleon theme, this style name must be added to the component splitButton.addStyleName(SplitButton.STYLE_CHAMELEON); splitButton.setIcon(new ThemeResource( "../runo/icons/16/document-add.png")); splitButton.setComponent(createSplitButtonPopupContent()); splitButton.addClickListener(new SplitButtonClickListener() { public void splitButtonClick(SplitButtonClickEvent event) { getMainWindow().showNotification("Button clicked!"); } });
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Fixed sizing issues
- Released
- 2011-10-07
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.0+
- Browser
- Internet Explorer
- Internet Explorer
- Firefox
- Opera
- Safari
- Google Chrome
- Internet Explorer
- iOS Browser
- Android Browser
SplitButton - Vaadin Add-on Directory
Button containing a primary button and a popup opener button.Online Demo
Issue Tracker
Source Code
PopupButton
Discussion Forum
SplitButton version 0.9.2
The PopupButton dependency is automatically resolved when Maven is used.
SplitButton version 0.9.3
- Added support for the Chameleon theme
- Fixes to component's client-side size calculations
- Enhancements to the demo application
SplitButton version 0.9.4
Added get/setButtonDescription & get/setPopupButtonDescription methods.
SplitButton version 0.9.5
- Fixed a ConcurrentModificationException (and test case)
- Fixed disabled theme in Reindeer
SplitButton version 0.9.6
Fixed a bug with setEnabled()
SplitButton version 0.9.7
Fixed sizing issues