private String height;
private String width;
+ private boolean waitingForResponse;
+
/**
* Previous visible widget is set invisible with CSS (not display: none, but
* visibility: hidden), to avoid flickering during render process. Normal
tabIndex).toString(), true);
}
});
+ waitingForResponse = true;
}
}
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) {
- if (disabled) {
+ if (disabled || waitingForResponse) {
return false;
}
final Object tabKey = tabKeys.get(tabIndex);
tb.setVisible(true);
removeStyleName(CLASSNAME + "-hidetabs");
}
-
+ waitingForResponse = false;
}
protected void renderTab(final UIDL tabUidl, int index, boolean selected) {