summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/Focusable.java
blob: bf225ad61de843ce7ca37d8043598994b63893ae (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. Toolkit 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();
}