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

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

Introduction

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

Prototype

public void blur(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);// w w  w. j ava 2 s  .c  o m
    } else {
        support.blur(element);
    }
}