PDA

View Full Version : Grid and ContextMenu



lfelser
12 Jan 2009, 4:35 PM
There is a method on Grid to setContextMenu, but there is no method to getContextMenu. Is that just a missing method, or is there some other way to get it?

I want to enable/disable menuItems based on the row selected.

Note that both Tree and Table have the methods setContextMenu *and* getContextMenu.

lfelser
12 Jan 2009, 5:07 PM
I can get around this by subclassing Listener, but it still would be nice to have that get method.

lfelser
12 Jan 2009, 6:04 PM
One further note: the GridEvent class does have a public "menu" field, but it does not return the context menu (as the docs state). It returns null.