summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/Focusable.java
blob: 35f9c1ba7643208ae03c99ca8693f605c7fc00c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.vaadin.terminal.gwt.client;

/**
 * GWT's HasFocus is way too overkill for just receiving focus in simple
 * components. Vaadin uses this interface in addition to GWT's HasFocus to pass
 * focus requests from server to actual ui widgets in browsers.
 * 
 * So in to make your server side focusable component receive focus on client
 * side it must either implement this or HasFocus interface.
 */
public interface Focusable {
    /**
     * Sets focus to this widget.
     */
    public void focus();
}