wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

com.smartgwt.client.widgets.tab.Tab - add support for context menu #622

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a TabSet and add a couple of Tabs as in 
http://www.smartclient.com/smartgwt/showcase/#layout_tabs_orientation
2. right click a Tab header

What is the expected output? What do you see instead?
A context menu defined by the application where one could place items (text and 
icon) such as
- Close tab
- Close other tabs
- Reload tab
should appear but the default context menu of the browser appears instead (see 
screenshot).

I would say that Tab headers normally have a context menu / the users expect 
one to be there. Popping up the browser's default context menu is just 
confusing / not helpful.

What version of the product are you using? On what operating system?
SmartGWT 2.5 on W7, WS 2008 R2, Mac OS X SL

What browser(s) does this happen in?  Are there any browsers where the
issue does not occur?
Safari & Seamonkey on Mac, FF on W7, WS 2008 R2, probably simply not supported

Please provide any additional information below.

Original issue reported on code.google.com by dominik....@gmail.com on 24 Aug 2011 at 8:42

Attachments:

GoogleCodeExporter commented 9 years ago
An API already exists to add a contextMenu to a Tab:

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/widgets/tab/Ta
b.html#setContextMenu%28com.smartgwt.client.widgets.menu.Menu%29

If you meant something else, please clarify and issue will be marked valid 
again.

Original comment by charles....@gmail.com on 25 Aug 2011 at 7:28