Example usage for com.google.gwt.user.client.ui.impl FocusImpl focus

List of usage examples for com.google.gwt.user.client.ui.impl FocusImpl focus

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui.impl FocusImpl focus.

Prototype

public void focus(Element elem) 

Source Link

Usage

From source file:rocket.widget.client.FocusWidget.java

License:Apache License

public void setFocus(final boolean focused) {
    final FocusImpl support = this.getFocusSupport();
    final Element element = this.getElement();
    if (focused) {
        support.focus(element);
    } else {/*from w  ww  .j  av  a 2s  .  c o  m*/
        support.blur(element);
    }
}