PopupExtension
A better PopupView
PopupExtension is a popup that you can align relative to any component you want. No more fiddling with PopupButton or PopupView.
Warning, this is a very experimental Extension with one ugly hack to work around a lack in Vaadin's features. If your application looks broken all of a sudden, it's probably PopupExtension's fault.
Sample code
final Button button = new Button("Click Me"); final PopupExtension popupExtension = PopupExtension.extend(button); button.addClickListener(new Button.ClickListener() { public void buttonClick(final ClickEvent event) { popupExtension.open(); } }); layout.addComponent(button); popupExtension.setContent(getTestLayout()); popupExtension.setAnchor(Alignment.BOTTOM_RIGHT); popupExtension.setDirection(Alignment.BOTTOM_RIGHT);
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
- added diagnostics for null UI content
- introduced
setCloseOnOutsideMouseClick()
andisCloseOnOutsideMouseClick()
for clarity
- Released
- 2017-09-08
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 8.0+
- Vaadin 7.1+ in 0.6.0
- Vaadin 7.0+ in 0.4.0
- Browser
- Firefox
- Google Chrome
PopupExtension - Vaadin Add-on Directory
A better PopupViewPopupExtension is a popup that you can align relative to any component you want. No more fiddling with PopupButton or PopupView.
Warning, this is a very experimental Extension with one ugly hack to work around a lack in Vaadin's features. If your application looks broken all of a sudden, it's probably PopupExtension's fault.