List of usage examples for com.google.gwt.user.client.ui RootLayoutPanel getWidgetIndex
public int getWidgetIndex(IsWidget child)
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); } } }); }