|
|
@ -4,6 +4,7 @@ import com.fr.base.TableData; |
|
|
|
import com.fr.base.iofile.attr.ExtendSharableAttrMark; |
|
|
|
import com.fr.base.iofile.attr.ExtendSharableAttrMark; |
|
|
|
import com.fr.base.iofile.attr.SharableAttrMark; |
|
|
|
import com.fr.base.iofile.attr.SharableAttrMark; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
|
|
|
import com.fr.base.theme.TemplateThemeConfig; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.mainframe.share.generate.impl.AbstractComponentCreatorProcessor; |
|
|
|
import com.fr.design.mainframe.share.generate.impl.AbstractComponentCreatorProcessor; |
|
|
@ -18,6 +19,7 @@ import com.fr.form.share.utils.ShareUtils; |
|
|
|
import com.fr.form.ui.AbstractBorderStyleWidget; |
|
|
|
import com.fr.form.ui.AbstractBorderStyleWidget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.fun.IOFileAttrMark; |
|
|
|
import com.fr.stable.fun.IOFileAttrMark; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
@ -61,8 +63,13 @@ public class ComponentCreator extends AbstractComponentCreatorProcessor { |
|
|
|
|
|
|
|
|
|
|
|
private void setSuitableTemplateThemeName(JTemplate<?, ?> jt, DefaultSharableWidget info) { |
|
|
|
private void setSuitableTemplateThemeName(JTemplate<?, ?> jt, DefaultSharableWidget info) { |
|
|
|
TemplateTheme theme = jt.getTemplateTheme(); |
|
|
|
TemplateTheme theme = jt.getTemplateTheme(); |
|
|
|
if (theme != null) { |
|
|
|
if (theme != null ) { |
|
|
|
info.setSuitableTemplateThemeName(theme.getName()); |
|
|
|
String name = theme.getName(); |
|
|
|
|
|
|
|
TemplateThemeConfig<? extends TemplateTheme> config = jt.getUsingTemplateThemeConfig(); |
|
|
|
|
|
|
|
String name4LegacyTemplate = config.getThemeName4LegacyTemplate(); |
|
|
|
|
|
|
|
if (!StringUtils.equals(name, name4LegacyTemplate)) { |
|
|
|
|
|
|
|
info.setSuitableTemplateThemeName(name); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|