You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fr.design.mainframe.share;
|
|
|
|
|
|
|
|
import com.fr.config.ConfigContext;
|
|
|
|
import com.fr.config.DefaultConfiguration;
|
|
|
|
import com.fr.config.Identifier;
|
|
|
|
import com.fr.config.holder.Conf;
|
|
|
|
import com.fr.config.holder.factory.Holders;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ComponentShare 全局配置
|
|
|
|
*
|
|
|
|
* @author Zhanying
|
|
|
|
* @since 11.0
|
|
|
|
* Created on 2025/4/7
|
|
|
|
*/
|
|
|
|
public class ComponentShareConfig extends DefaultConfiguration {
|
|
|
|
private static ComponentShareConfig config = null;
|
|
|
|
|
|
|
|
public static ComponentShareConfig getInstance() {
|
|
|
|
if (config == null) {
|
|
|
|
config = ConfigContext.getConfigInstance(ComponentShareConfig.class);
|
|
|
|
}
|
|
|
|
return config;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否显示在线组件
|
|
|
|
*/
|
|
|
|
@Identifier("showOnlineWidget")
|
|
|
|
private Conf<Boolean> showOnlineWidget = Holders.simple(true);
|
|
|
|
|
|
|
|
public boolean isShowOnlineWidget() {
|
|
|
|
return showOnlineWidget.get();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setShowOnlineWidget(boolean showOnlineWidget) {
|
|
|
|
this.showOnlineWidget.set(showOnlineWidget);
|
|
|
|
}
|
|
|
|
}
|