有没有办法找出哪个组件在 Vaadin 窗口中具有实际焦点!?
最佳答案
不,至少不是直接的(这令人惊讶)。请follow the links and discussions indicated in the thread on Vaadin forum .
您可以绕过它,但这需要一定的工作量。起点是 the Focusable
interface .基本上,您应该捕获所有组件中的所有焦点事件。
关于java - Vaadin 检查哪个组件具有焦点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11185003/