Example usage for com.google.gwt.user.client.ui FocusPanel setTabIndex

List of usage examples for com.google.gwt.user.client.ui FocusPanel setTabIndex

Introduction

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

Prototype

public void setTabIndex(int index) 

Source Link

Usage

From source file:org.eclipse.che.ide.ui.window.View.java

License:Open Source License

View(Window.Resources res, boolean showBottomPanel) {
    this.res = res;
    this.css = res.windowCss();
    windowWidth = com.google.gwt.user.client.Window.getClientWidth();
    clientLeft = Document.get().getBodyOffsetLeft();
    clientTop = Document.get().getBodyOffsetTop();
    initWidget(uiBinder.createAndBindUi(this));
    footer = new HTMLPanel("");
    if (showBottomPanel) {
        footer.setStyleName(res.windowCss().footer());
        contentContainer.add(footer);//from  w w w.  ja  v a2 s  .  c o  m
    }
    handleEvents();

    FocusPanel dummyFocusElement = new FocusPanel();
    dummyFocusElement.setTabIndex(0);
    dummyFocusElement.addFocusHandler(new FocusHandler() {
        @Override
        public void onFocus(FocusEvent event) {
            setFocus();
        }
    });
    contentContainer.add(dummyFocusElement);
}