|
|
@ -13,6 +13,7 @@ import com.fr.base.frpx.exception.InvalidWorkBookException; |
|
|
|
import com.fr.base.io.XMLEncryptUtils; |
|
|
|
import com.fr.base.io.XMLEncryptUtils; |
|
|
|
import com.fr.base.process.ProcessOperator; |
|
|
|
import com.fr.base.process.ProcessOperator; |
|
|
|
import com.fr.base.remote.RemoteDeziConstants; |
|
|
|
import com.fr.base.remote.RemoteDeziConstants; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
@ -49,13 +50,13 @@ import com.fr.design.parameter.WorkBookParameterReader; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.ModuleContext; |
|
|
|
import com.fr.general.ModuleContext; |
|
|
|
import com.fr.general.xml.GeneralXMLTools; |
|
|
|
import com.fr.general.xml.GeneralXMLTools; |
|
|
|
import com.fr.io.importer.Excel2007ReportImporter; |
|
|
|
import com.fr.io.importer.Excel2007ReportImporter; |
|
|
|
import com.fr.io.importer.ExcelReportImporter; |
|
|
|
import com.fr.io.importer.ExcelReportImporter; |
|
|
|
import com.fr.io.utils.ResourceIOUtils; |
|
|
|
import com.fr.io.utils.ResourceIOUtils; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.main.impl.WorkBookAdapter; |
|
|
|
import com.fr.main.impl.WorkBookAdapter; |
|
|
|
import com.fr.main.impl.WorkBookX; |
|
|
|
import com.fr.main.impl.WorkBookX; |
|
|
@ -130,25 +131,27 @@ public class DesignerModule extends DesignModule { |
|
|
|
GeneralXMLTools.Object_XML_Writer_Finder = startObjectXMLWriterFinder(); |
|
|
|
GeneralXMLTools.Object_XML_Writer_Finder = startObjectXMLWriterFinder(); |
|
|
|
addAdapterForPlate(); |
|
|
|
addAdapterForPlate(); |
|
|
|
|
|
|
|
|
|
|
|
registerCellEditor(); |
|
|
|
|
|
|
|
registerFloatEditor(); |
|
|
|
|
|
|
|
registerData4Form(); |
|
|
|
|
|
|
|
registerOtherPane(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InformationCollector.getInstance().collectStartTime(); |
|
|
|
InformationCollector.getInstance().collectStartTime(); |
|
|
|
|
|
|
|
|
|
|
|
ExtraDesignClassManager.getInstance().getFeedback().didFeedback(); |
|
|
|
ExtraDesignClassManager.getInstance().getFeedback().didFeedback(); |
|
|
|
StableFactory.registerMarkedObject(LogProvider.MARK_STRING, DesignerLogImpl.getInstance()); |
|
|
|
StableFactory.registerMarkedObject(LogProvider.MARK_STRING, DesignerLogImpl.getInstance()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void registerOtherPane() { |
|
|
|
public static void register() { |
|
|
|
|
|
|
|
registerCellEditor(); |
|
|
|
|
|
|
|
registerFloatEditor(); |
|
|
|
|
|
|
|
registerData4Form(); |
|
|
|
|
|
|
|
registerOtherPane(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void registerOtherPane() { |
|
|
|
StableFactory.registerMarkedClass(BBSGuestPaneProvider.XML_TAG, BBSGuestPane.class); |
|
|
|
StableFactory.registerMarkedClass(BBSGuestPaneProvider.XML_TAG, BBSGuestPane.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* kunsnat:注册单元格选中Editor |
|
|
|
* kunsnat:注册单元格选中Editor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void registerCellEditor() { |
|
|
|
private static void registerCellEditor() { |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerCellEditor(String.class, new CellStringQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(String.class, new CellStringQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(Number.class, new CellStringQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(Number.class, new CellStringQuickEditor()); |
|
|
@ -161,7 +164,7 @@ public class DesignerModule extends DesignModule { |
|
|
|
ActionFactory.registerCellEditor(BufferedImage.class, new CellImageQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(BufferedImage.class, new CellImageQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(CellImagePainter.class, new CellImageQuickEditor()); |
|
|
|
ActionFactory.registerCellEditor(CellImagePainter.class, new CellImageQuickEditor()); |
|
|
|
//todo 图表编辑器populate没能实现刷新面板显示
|
|
|
|
//todo 图表编辑器populate没能实现刷新面板显示
|
|
|
|
ActionFactory.registerChartCellEditorInEditor(BasicChartQuickEditor.class); |
|
|
|
ActionFactory.registerCellEditorClass(ChartCollection.class, BasicChartQuickEditor.class); |
|
|
|
|
|
|
|
|
|
|
|
Set<ElementUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ElementUIProvider.MARK_STRING); |
|
|
|
Set<ElementUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ElementUIProvider.MARK_STRING); |
|
|
|
for (ElementUIProvider provider : providers) { |
|
|
|
for (ElementUIProvider provider : providers) { |
|
|
@ -183,7 +186,7 @@ public class DesignerModule extends DesignModule { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* kunnat: 注册悬浮选中Editor |
|
|
|
* kunnat: 注册悬浮选中Editor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void registerFloatEditor() { |
|
|
|
private static void registerFloatEditor() { |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerFloatEditor(String.class, new FloatStringQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(String.class, new FloatStringQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(Formula.class, new FloatStringQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(Formula.class, new FloatStringQuickEditor()); |
|
|
@ -191,7 +194,7 @@ public class DesignerModule extends DesignModule { |
|
|
|
ActionFactory.registerFloatEditor(BufferedImage.class, new FloatImageQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(BufferedImage.class, new FloatImageQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(CellImagePainter.class, new FloatImageQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditor(CellImagePainter.class, new FloatImageQuickEditor()); |
|
|
|
//todo 图表编辑器populate没能实现刷新面板显示
|
|
|
|
//todo 图表编辑器populate没能实现刷新面板显示
|
|
|
|
ActionFactory.registerChartFloatEditorInEditor(FloatChartQuickEditor.class); |
|
|
|
ActionFactory.registerFloatEditorClass(ChartCollection.class, FloatChartQuickEditor.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -493,7 +496,7 @@ public class DesignerModule extends DesignModule { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void registerData4Form() { |
|
|
|
private static void registerData4Form() { |
|
|
|
StableFactory.registerMarkedClass(FormECDesignerProvider.XML_TAG, FormElementCaseDesigner.class); |
|
|
|
StableFactory.registerMarkedClass(FormECDesignerProvider.XML_TAG, FormElementCaseDesigner.class); |
|
|
|
StableFactory.registerMarkedClass(FormECCompositeProvider.XML_TAG, FormReportComponentComposite.class); |
|
|
|
StableFactory.registerMarkedClass(FormECCompositeProvider.XML_TAG, FormReportComponentComposite.class); |
|
|
|
DesignModuleFactory.registerParameterReader(new WorkBookParameterReader()); |
|
|
|
DesignModuleFactory.registerParameterReader(new WorkBookParameterReader()); |
|
|
|