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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Can i track activate Window event?
Hi,
i need an event that can notify me when a window become the topmost (because the user have clicked on it peraphs) or loose the focus (because another new Window overlap the previous), but i haven't found anything in Vaadin API (i use current stable release 6.2.6), anyone can help me?
I need also a metod that can make a Window the topmost (something like myWindow.focus() peraphs)...
My final goal is to implement something like Windows MDI (Multiple Document Interface) behavior....
Thanks in advance
Antonino
Hi!
The features you are looking for are currently missing, but they shouldn't be too hard to implement.
We actually just talked about that Window should should implement Focusable interface. They actually focus when first attached (unless anything else is focused), but there is no server side API for it yet.
They could well support FocusListener's too in they way you described.
Feel free to try implementing those or/and creating an enhancement tickets to trac.
cheers,
matti
I need also a metod that can make a Window the topmost (something like myWindow.focus() peraphs)...
Hi,
Could you please give direction on how to implement that?
You said there have been discussion about it, would you know in which version it would be released please?
Thanks.