use of com.gwtplatform.mvp.client.TabData in project ovirt-engine by oVirt.
the class AbstractSubTabPanelPresenter method onReveal.
@Override
protected void onReveal() {
super.onReveal();
// make sure all detail tabs have their visibility updated
for (Map.Entry<TabData, Model> entry : detailTabToModelMapping.entrySet()) {
TabData tabData = entry.getKey();
Model detailModel = entry.getValue();
updateTabVisibility(tabData, detailModel);
}
}
use of com.gwtplatform.mvp.client.TabData in project ovirt-engine by oVirt.
the class AbstractSubTabPanelPresenter method onBind.
@Override
protected void onBind() {
super.onBind();
// initialize detail tab to model mappings
initDetailTabToModelMapping(detailTabToModelMapping);
// add IsAvailable property change listener for each detail model
for (Map.Entry<TabData, Model> entry : detailTabToModelMapping.entrySet()) {
TabData tabData = entry.getKey();
Model detailModel = entry.getValue();
detailModel.getPropertyChangedEvent().addListener((ev, sender, args) -> {
if ("IsAvailable".equals(args.propertyName)) {
// $NON-NLS-1$
updateTabVisibility(tabData, detailModel);
}
});
}
}