Search in sources :

Example 1 with MainTabSheetMode

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;
}
Also used : MainTabSheetMode(com.haulmont.cuba.web.toolkit.ui.MainTabSheetMode) WebConfig(com.haulmont.cuba.web.WebConfig)

Aggregations

WebConfig (com.haulmont.cuba.web.WebConfig)1 MainTabSheetMode (com.haulmont.cuba.web.toolkit.ui.MainTabSheetMode)1