Example usage for com.google.gwt.user.client.ui RootLayoutPanel getWidgetIndex

List of usage examples for com.google.gwt.user.client.ui RootLayoutPanel getWidgetIndex

Introduction

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

Prototype

public int getWidgetIndex(IsWidget child) 

Source Link

Usage

From source file:com.kk_electronic.kkportal.core.ui.GlassPanel.java

License:Open Source License

public void show() {
    if (showing)//from w  w w. j av a 2s  .  c  o  m
        return;
    showing = true;
    final RootLayoutPanel r = RootLayoutPanel.get();
    Scheduler.get().scheduleDeferred(new Command() {

        @Override
        public void execute() {
            if (r.getWidgetIndex(widget) == -1) {
                r.add(widget);
            }
        }
    });
}