use of com.haulmont.cuba.web.toolkit.ui.MainTabSheetMode in project cuba by cuba-platform.
the class WebWindow method setContentSwitchMode.
@Override
public void setContentSwitchMode(ContentSwitchMode mode) {
Preconditions.checkNotNullArgument(mode, "Content switch mode can't be null. " + "Use ContentSwitchMode.DEFAULT option instead");
MainTabSheetMode tabSheetMode = AppBeans.get(Configuration.class).getConfig(WebConfig.class).getMainTabSheetMode();
if (tabSheetMode != MainTabSheetMode.MANAGED) {
log.debug("Content switch mode can be set only for the managed main TabSheet. Current invocation will be ignored.");
}
this.contentSwitchMode = mode;
}
Aggregations