2 changed files with 41 additions and 0 deletions
@ -0,0 +1,37 @@ |
|||||||
|
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; |
||||||
|
|
||||||
|
/** |
||||||
|
* @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); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue