Browse Source

Pull request #12130: 无jira任务,补交遗漏代码

Merge in DESIGN/design from ~CORAL.CHEN/design:release/11.0 to release/11.0

* commit 'bb5781511f606e72c6fc07513ec848692b1c756f':
  无jira任务,补交遗漏代码
newui
Coral.Chen-张晨 2 years ago committed by Yvan-欧阳帆
parent
commit
eb2fbc2baa
  1. 10
      designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

10
designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

@ -5,7 +5,7 @@ import com.fr.design.beans.BasicBeanPane;
import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicPane;
import com.fr.design.fun.MobileWidgetStyleProvider; import com.fr.design.fun.MobileWidgetStyleProvider;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.mobile.processor.MobileStyleDefinePaneProcessor; import com.fr.design.mainframe.mobile.processor.MobileStyleDefinePaneCreator;
import com.fr.event.Event; import com.fr.event.Event;
import com.fr.event.EventDispatcher; import com.fr.event.EventDispatcher;
import com.fr.event.Listener; import com.fr.event.Listener;
@ -129,13 +129,13 @@ public class MobileStylePane extends BasicPane {
listModel.addElement(displayName); listModel.addElement(displayName);
try { try {
MobileStyleDefinePaneProcessor processor = ExtraDesignClassManager.getInstance().getSingle(MobileStyleDefinePaneProcessor.XML_TAG); MobileStyleDefinePaneCreator processor = ExtraDesignClassManager.getInstance().getSingle(MobileStyleDefinePaneCreator.XML_TAG);
BasicBeanPane<MobileStyle> mobileStyleBasicBeanPane = new MobileStyleDefinePane(widget, appearanceClazz, mobileStyleClazz); BasicBeanPane<MobileStyle> mobileStyleBasicBeanPane = new MobileStyleDefinePane(widget, appearanceClazz, mobileStyleClazz);
if (checkFlag && processor != null && processor.createBaseBeanPane(widget, appearanceClazz, mobileStyleClazz) != null) { if (checkFlag && processor != null && processor.createBaseBeanPane(widget, appearanceClazz, mobileStyleClazz) != null) {
mobileStyleBasicBeanPane = processor.createBaseBeanPane(widget, appearanceClazz, mobileStyleClazz); mobileStyleBasicBeanPane = processor.createBaseBeanPane(widget, appearanceClazz, mobileStyleClazz);
Class<? extends MobileCommonExtraStyle> extraStyle = processor.classForCommonExtraStyle(widget); Class<? extends MobileCommonExtraStyle> extraStyle = processor.classForCommonExtraStyle(widget);
if (extraStyle != null) { if (extraStyle != null) {
StyleClassMap.getCommonStyleMap().put(extraStyle.getName(), extraStyle.getName()); StyleClassMap.putCommonStyle(extraStyle.getName(), extraStyle.getName());
} }
} }
right.add(displayName, mobileStyleBasicBeanPane); right.add(displayName, mobileStyleBasicBeanPane);
@ -168,7 +168,7 @@ public class MobileStylePane extends BasicPane {
EventDispatcher.listen(PluginEventType.AfterRun, new Listener<PluginContext>() { EventDispatcher.listen(PluginEventType.AfterRun, new Listener<PluginContext>() {
@Override @Override
public void on(Event event, PluginContext pluginContext) { public void on(Event event, PluginContext pluginContext) {
if (pluginContext.getRuntime().contain(MobileStyleDefinePaneProcessor.XML_TAG)) { if (pluginContext.getRuntime().contain(MobileStyleDefinePaneCreator.XML_TAG)) {
checkFlag = true; checkFlag = true;
refreshDockingView(); refreshDockingView();
} }
@ -177,7 +177,7 @@ public class MobileStylePane extends BasicPane {
EventDispatcher.listen(PluginEventType.BeforeStop, new Listener<PluginContext>() { EventDispatcher.listen(PluginEventType.BeforeStop, new Listener<PluginContext>() {
@Override @Override
public void on(Event event, PluginContext pluginContext) { public void on(Event event, PluginContext pluginContext) {
if (pluginContext.getRuntime().contain(MobileStyleDefinePaneProcessor.XML_TAG)) { if (pluginContext.getRuntime().contain(MobileStyleDefinePaneCreator.XML_TAG)) {
checkFlag = false; checkFlag = false;
refreshDockingView(); refreshDockingView();
} }

Loading…
Cancel
Save