Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

ContextMenu component

Peter Lehto
1 decade ago Feb 22, 2010 7:45am
Henri Muurimaa
1 decade ago Feb 22, 2010 10:59am
Peter Lehto
1 decade ago Mar 13, 2010 3:50pm
Xavier Pan
1 decade ago Apr 01, 2010 1:01am
Peter K
1 decade ago Apr 04, 2010 4:07pm
Jouni Koivuviita
1 decade ago Apr 05, 2010 7:53pm
Heli Jussila
1 decade ago Apr 09, 2010 5:01am
Peter Lehto
1 decade ago Apr 09, 2010 9:43am
Peter Lehto
1 decade ago Apr 09, 2010 10:32am
Peter K
1 decade ago Apr 11, 2010 9:04am
Heli Jussila
1 decade ago Jun 08, 2010 11:31am
Andris Lapinsh
1 decade ago Jun 13, 2010 2:35pm
Jouni Koivuviita
1 decade ago Jun 13, 2010 3:12pm
Andris Lapinsh
1 decade ago Jun 13, 2010 3:48pm
dejo hu
1 decade ago Oct 25, 2010 8:07pm
Romain Wilbert
1 decade ago Nov 19, 2010 9:48am
Henri Sara
1 decade ago Nov 19, 2010 10:39am
tomas hlatky
1 decade ago Dec 20, 2010 4:39pm

Hi Peter,
What you've done is very useful.

I've got one issue with it. I have combined it with Drag&Drop Layout addon.
Each time I rightclick and don't choose any of context menu (leftclick elsewhere)
and then drag and drop some layout element, the contextmenu appears without right-click,
like it is just hidden and not closed.

Thanx for any idea

Andris Lapinsh
1 decade ago Dec 21, 2010 2:29pm
Thomas Boeck
1 decade ago Jan 06, 2011 3:23pm
Jouni Koivuviita
1 decade ago Jan 07, 2011 9:03am
Thomas Boeck
1 decade ago Jan 07, 2011 10:42am
Thomas Boeck
1 decade ago Jan 13, 2011 8:21am
Anatoly Shirokov
1 decade ago Jan 26, 2011 10:08am

Thank you, Peter. Your component is very usefull. Are you going to support the HierarchicalContainer as a data source for your component? Sometime it is usefull to have ability to switch beetween different contexts. Here is small example how I see it:

HierarhicalContainer firstTypeContext = new HierarhicalContainer();
HierarhicalContainer secondTypeContext = new HierarhicalContainer();
...

if( object instanseof FirstType )
    contextMenu.setContainerDataSource(firstTypeContext);
if( object instanseof SecondType )
    contextMenu.setContainerDataSource(secondTypeContext);
Fabrice Daugan
1 decade ago Feb 11, 2011 8:09am

Is there any chance to get Icons to be supported?

Vianney Dubus
1 decade ago Feb 15, 2011 9:47am

It would be great if we were able to add a ClickListener on each ContextItemMenu.

Andris Lapinsh
1 decade ago Feb 15, 2011 10:26am
Henri Sara
1 decade ago Feb 22, 2011 10:09am
Lam Le
1 decade ago Mar 29, 2011 11:10am
Henri Kerola
1 decade ago Mar 29, 2011 11:34am
Peter Lehto
1 decade ago Apr 18, 2011 1:53pm
Ugo Flamarion
1 decade ago Apr 18, 2011 4:14pm
Boris V
1 decade ago Apr 19, 2011 8:11am
Ugo Flamarion
1 decade ago Apr 19, 2011 8:23am
tomas hlatky
1 decade ago Apr 19, 2011 9:30am
Boris V
1 decade ago Apr 19, 2011 9:35am
Ugo Flamarion
1 decade ago Apr 19, 2011 9:43am
Romain Baiguerra
1 decade ago Apr 19, 2011 12:28pm
Ugo Flamarion
1 decade ago Apr 22, 2011 1:16pm
David Wall
1 decade ago Apr 25, 2011 7:02pm

Can ContextMenu be used on a Button or Link or just those components that can support child components?

I have a "choice of download options" I'd like to present when someone clicks on a simple Button, though in my case the Button is in a Table. This way, I could avoid having several buttons next to each other.

Or would I be better off without a Button with a ContextMenu attached to it and use something else, like a simple MenuBar? I like the look of a Button more, and a Link may be okay though less obvious to notice.