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.

Menubar deprecated?

Daniel R
1 decade ago Dec 30, 2009 5:10pm

hi folks,

I was developing a window system and I am using the menubar as a main reference to manipulate the windows, giving an overview over the current states etc...

two different problems I currently have:
- how to bring a window in front of others?
- how to add MenuItems?

the first is solved within the vaadin/gwt in the client itself. a bit javascript (using the new execute javascript function) will solve my needs.

the next was terrible to figure out. there is no possibility to add existing menuitems and, this is the frightening information, the menubar is deprecated. why it is deprecated? the deprecation list (in the api) shows no reason (the entry is blank). what should I use instead? and the worst of all. you (the vaadin group) show on your sample mark menubar as "new" (like new or new features).

please help me. I don't want to develop a system using as a main component something that is marked as deprecated or will may be removed in the future?

D.

Marko Grönroos
1 decade ago Dec 30, 2009 6:05pm

Daniel Rabe: the next was terrible to figure out. there is no possibility to add existing menuitems and, this is the frightening information, the menubar is deprecated. why it is deprecated? the deprecation list (in the api) shows no reason (the entry is blank). what should I use instead? and the worst of all. you (the vaadin group) show on your sample mark menubar as "new" (like new or new features).

please help me. I don't want to develop a system using as a main component something that is marked as deprecated or will may be removed in the future?

com.vaadin.ui.MenuBar is not in any way deprecated. You must have accidentally tried to use the client-side com.vaadin.terminal.gwt.client.ui.MenuBar, which is deprecated. It is only used internally by the FilterSelect component and is not meant to be used for anything else. The client-side counterpart for the server-side MenuBar is actually VMenuBar.

Daniel R
1 decade ago Dec 31, 2009 1:26pm