Example usage for com.google.gwt.user.client.ui Focusable getTabIndex

List of usage examples for com.google.gwt.user.client.ui Focusable getTabIndex

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Focusable getTabIndex.

Prototype

int getTabIndex();

Source Link

Document

Gets the widget's position in the tab index.

Usage

From source file:asquare.gwt.tk.client.ui.behavior.FocusModel.java

License:Apache License

/**
 * Determines whether the specified Widget can be added to the model.
 * /*from  ww w . j  a va2s . co  m*/
 * @param widget a widget which is candidate to be added to the model
 * @return <code>true</code> if <code>widget.getTabIndex() >= 0</code>
 */
protected boolean shouldAdd(Focusable widget) {
    return widget.getTabIndex() >= 0;
}