Example usage for com.vaadin.ui Window addFocusListener

List of usage examples for com.vaadin.ui Window addFocusListener

Introduction

In this page you can find the example usage for com.vaadin.ui Window addFocusListener.

Prototype

@Override
    public Registration addFocusListener(FocusListener listener) 

Source Link

Usage

From source file:com.cms.utils.DataUtil.java

License:Open Source License

public static void addFocusWindow(Window window, final Component.Focusable component) {
    window.addFocusListener(new FocusListener() {

        @Override//  w w w . j  ava2  s  .  co m
        public void focus(FocusEvent event) {
            component.focus();
        }
    });
}