Directory

← Back

Vaadin ContextMenu

Unified contextual popup for all Vaadin components.

Author

Rating

Popularity

200+

With Vaadin ContextMenu you can add context menu popup to any Vaadin component. It uses similar API and styling with Vaadin's MenuBar component.

Features:

  • Dynamic, hierarchical context menus
  • Icon support
  • Check/uncheck menu items
  • Keyboard navigation
  • Special item and property support for Grid, Table and TreeTable

Note: Vaadin ContextMenu uses new context click features introduced in Vaadin 7.6.

Sample code


// Create a context menu for 'someComponent'
ContextMenu contextMenu = new ContextMenu(somComponent, true);

// Checkable item
final MenuItem item = contextMenu.addItem("Checkable", e -> {
            Notification.show("checked: " + e.isChecked());
        });
item.setCheckable(true);
item.setChecked(true);

// Disabled item
MenuItem item2 = contextMenu.addItem("Disabled", e -> {
            Notification.show("disabled");
});
item2.setEnabled(false);

Compatibility

(Loading compatibility data...)

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

  • Bugfixes
  • HTML tooltips support
Released
2018-06-04
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.4+
Vaadin 8.10+ in 3.1.0
Vaadin 8.6+ in 3.0.2
Vaadin 8.0+ in 2.0.0
Vaadin 7.6+ in 0.7.5
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Microsoft Edge

Vaadin ContextMenu - Vaadin Add-on Directory

Unified contextual popup for all Vaadin components. Vaadin ContextMenu - Vaadin Add-on Directory
With Vaadin ContextMenu you can add context menu popup to any Vaadin component. It uses similar API and styling with Vaadin's MenuBar component. Features: * Dynamic, hierarchical context menus * Icon support * Check/uncheck menu items * Keyboard navigation * Special item and property support for Grid, Table and TreeTable **Note:** Vaadin ContextMenu uses new context click features introduced in Vaadin 7.6.
Author Homepage
Online Demo
Issue Tracker
Source Code
Discussion Forum

Vaadin ContextMenu version 0.7
Initial public release including: - API similar to Vaadin MenuBar - Specialized GridContextMenu

Vaadin ContextMenu version 0.7.1
Java 7 compatibility. Keep context menu fully on screen whenever possible. Note that the version 0.7.1 requires a recent snapshot of Vaadin 7.6 or Vaadin 7.6.0.rc1 or later.

Vaadin ContextMenu version 0.7.2
Added OSGi meta-data to MANIFEST.MF by philippberger

Vaadin ContextMenu version 0.7.3
Ignore command, if the widget is no longer attached. Serialisation, stylesheets and logging fixes. Special thanks to maxschuster.

Vaadin ContextMenu version 0.7.4
Support for Vaadin 7.7

Vaadin ContextMenu version 2.0.0.beta1
Support for Vaadin Framework 8.0.0.beta1 Changed groupId to `com.vaadin` from `com.vaadin.addon` Changed package name to `com.vaadin.contextmenu` from `com.vaadin.addon.contextmenu` Available from the pre-releases repository, i.e. for maven: ```xml vaadin-prereleases https://maven.vaadin.com/vaadin-prereleases ```

Vaadin ContextMenu version 2.0.0.rc1
Compatible with Vaadin Framework 8.0.0.rc1

Vaadin ContextMenu version 2.0.0
Support for Vaadin Framework 8.0

Vaadin ContextMenu version 0.7.5
Improved OSGi support. Fix for Table ItemClickListener.

Vaadin ContextMenu version 2.1.0
- Bugfixes - HTML tooltips support

Vaadin ContextMenu version 3.0.0.beta1
The context menu was rewritten from scratch, but API was kept compatible with version 2.x. Required Framework version is 8.6+. Key improvements are: - Tree context click support - BrowserWindowOpener support for menu items, i.e. now it's possible to open new browser instances by clicking menu items - FileDownloader support for menu items, i.e. now it's possible to download files by clicking menu items - HTML format for items is implemented - Numerous bugfixes

Vaadin ContextMenu version 3.0.0
The context menu was rewritten from scratch, but API was kept compatible with version 2.x. Required Framework version is 8.6+. Key improvements are: - Tree context click support - BrowserWindowOpener support for menu items, i.e. now it's possible to open new browser instances by clicking menu items - FileDownloader support for menu items, i.e. now it's possible to download files by clicking menu items - HTML format for items is implemented - Numerous bugfixes

Vaadin ContextMenu version 3.0.1
Fixed issue by making possible setting ConnectorResource resources as icons

Vaadin ContextMenu version 3.0.2

Vaadin ContextMenu version 3.1.0
### Version 3.1.0 - Fixes issue with warnings due deprecated listener use - Vaadin version 8.12.0 or newer required

Online