use of org.rstudio.core.client.events.EnsureHiddenEvent in project rstudio by rstudio.
the class DelayLoadWorkbenchTab method initialize.
protected void initialize(final WorkbenchPane pane, Panel panel) {
assert !initialized_;
initialized_ = true;
pane.ensureWidget();
panel.add(pane);
pane.addEnsureVisibleHandler(new EnsureVisibleHandler() {
public void onEnsureVisible(EnsureVisibleEvent event) {
ensureVisible(event.getActivate());
}
});
pane.addEnsureHiddenHandler(new EnsureHiddenHandler() {
@Override
public void onEnsureHidden(EnsureHiddenEvent event) {
ensureHidden();
}
});
setInternalCallbacks(new InternalCallbacks() {
public void onBeforeSelected() {
pane.onBeforeSelected();
}
public void onSelected() {
pane.onSelected();
}
});
pane.onBeforeSelected();
pane.onSelected();
}
Aggregations