Browse Source

REPORT-891 表单打开时即显示缩略图

master
zhouping 8 years ago
parent
commit
c604d42924
  1. 7
      designer/src/com/fr/design/module/DesignerModule.java
  2. 2
      designer_form/src/com/fr/design/designer/creator/XElementCase.java
  3. 4
      designer_form/src/com/fr/design/mainframe/ElementCaseThumbnail.java
  4. 7
      designer_form/src/com/fr/design/module/FormDesignerModule.java

7
designer/src/com/fr/design/module/DesignerModule.java

@ -19,7 +19,10 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.javascript.ProcessTransitionAdapter;
import com.fr.design.mainframe.*;
import com.fr.design.mainframe.bbs.BBSGuestPane;
import com.fr.design.mainframe.form.*;
import com.fr.design.mainframe.form.FormECCompositeProvider;
import com.fr.design.mainframe.form.FormECDesignerProvider;
import com.fr.design.mainframe.form.FormElementCaseDesigner;
import com.fr.design.mainframe.form.FormReportComponentComposite;
import com.fr.design.mainframe.loghandler.DesignerLogImpl;
import com.fr.design.parameter.WorkBookParameterReader;
import com.fr.design.utils.gui.GUICoreUtils;
@ -43,7 +46,6 @@ import com.fr.stable.ArrayUtils;
import com.fr.stable.ParameterProvider;
import com.fr.stable.StringUtils;
import com.fr.stable.bridge.StableFactory;
import com.fr.stable.fun.ElementCaseThumbnailProcessor;
import com.fr.stable.fun.LogProvider;
import com.fr.stable.plugin.PluginSimplify;
import com.fr.stable.script.CalculatorProviderContext;
@ -98,7 +100,6 @@ public class DesignerModule extends DesignModule {
ExtraDesignClassManager.getInstance().getFeedback().didFeedback();
ExtraClassManager.getInstance().addMutable(LogProvider.MARK_STRING, DesignerLogImpl.getInstance(), PluginSimplify.NULL);
ExtraClassManager.getInstance().setImmutable(ElementCaseThumbnailProcessor.MARK_STRING, new ElementCaseThumbnail(), PluginSimplify.NULL);
}
private void registerOtherPane() {

2
designer_form/src/com/fr/design/designer/creator/XElementCase.java

@ -37,8 +37,6 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
private UILabel imageLable;
private CoverReportPane coverPanel;
private FormDesigner designer;
//缩略图
private BufferedImage thumbnailImage;
private static BufferedImage DEFAULT_BACKGROUND;
static{

4
designer_base/src/com/fr/design/mainframe/form/ElementCaseThumbnail.java → designer_form/src/com/fr/design/mainframe/ElementCaseThumbnail.java

@ -1,7 +1,7 @@
package com.fr.design.mainframe.form;
package com.fr.design.mainframe;
import com.fr.form.stable.fun.AbstractECThumbnailProcessor;
import com.fr.general.xml.GeneralXMLTools;
import com.fr.stable.fun.impl.AbstractECThumbnailProcessor;
import com.fr.stable.xml.XMLableReader;
import java.awt.*;

7
designer_form/src/com/fr/design/module/FormDesignerModule.java

@ -1,7 +1,6 @@
package com.fr.design.module;
import com.fr.base.FRContext;
import com.fr.general.ModuleContext;
import com.fr.base.io.XMLEncryptUtils;
import com.fr.design.DesignerEnvManager;
import com.fr.design.bridge.DesignToolbarProvider;
@ -10,12 +9,14 @@ import com.fr.design.mainframe.*;
import com.fr.design.mainframe.actions.NewFormAction;
import com.fr.design.parameter.FormParameterReader;
import com.fr.design.parameter.ParameterPropertyPane;
import com.fr.design.widget.ui.btn.FormSubmitButtonDetailPane;
import com.fr.file.FILE;
import com.fr.form.main.Form;
import com.fr.form.stable.ElementCaseThumbnailProcessor;
import com.fr.general.Inter;
import com.fr.general.ModuleContext;
import com.fr.stable.Constants;
import com.fr.stable.bridge.StableFactory;
import com.fr.design.widget.ui.btn.FormSubmitButtonDetailPane;
import java.util.HashMap;
@ -40,6 +41,8 @@ public class FormDesignerModule extends DesignModule {
DesignModuleFactory.registerParameterReader(new FormParameterReader());
registerData4Designer();
StableFactory.registerMarkedObject(ElementCaseThumbnailProcessor.MARK_STRING, new ElementCaseThumbnail());
}
private void registerData4Designer(){

Loading…
Cancel
Save