|
|
@ -141,22 +141,22 @@ public class DesignerModule extends DesignModule { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void registerCellEditor() { |
|
|
|
private void registerCellEditor() { |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerCellEditor(String.class, new CellStringQuickEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(String.class, CellStringQuickEditor.class); |
|
|
|
ActionFactory.registerCellEditor(Number.class, new CellStringQuickEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(Number.class, CellStringQuickEditor.class); |
|
|
|
ActionFactory.registerCellEditor(BaseFormula.class, new CellFormulaQuickEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(BaseFormula.class, CellFormulaQuickEditor.class); |
|
|
|
ActionFactory.registerCellEditor(SubReport.class, new CellSubReportEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(SubReport.class, CellSubReportEditor.class); |
|
|
|
ActionFactory.registerCellEditor(RichText.class, new CellRichTextEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(RichText.class, CellRichTextEditor.class); |
|
|
|
ActionFactory.registerCellEditor(DSColumn.class, new CellDSColumnEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(DSColumn.class, CellDSColumnEditor.class); |
|
|
|
ActionFactory.registerCellEditor(Image.class, new CellImageQuickEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(Image.class, CellImageQuickEditor.class); |
|
|
|
ActionFactory.registerCellEditor(BiasTextPainter.class, new CellBiasTextPainterEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(BiasTextPainter.class, CellBiasTextPainterEditor.class); |
|
|
|
ActionFactory.registerCellEditor(BufferedImage.class, new CellImageQuickEditor()); |
|
|
|
ActionFactory.registerCellEditorClass(BufferedImage.class, CellImageQuickEditor.class); |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerChartCellEditorInEditor(BasicChartQuickEditor.class); |
|
|
|
ActionFactory.registerChartCellEditorInEditor(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) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
ActionFactory.registerCellEditor(provider.targetObjectClass(), provider.quickEditor().newInstance()); |
|
|
|
ActionFactory.registerCellEditorClass(provider.targetObjectClass(), provider.quickEditor()); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FRLogger.getLogger().error(e.getMessage(), e); |
|
|
|
FRLogger.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
@ -174,10 +174,10 @@ public class DesignerModule extends DesignModule { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void registerFloatEditor() { |
|
|
|
private void registerFloatEditor() { |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerFloatEditor(String.class, new FloatStringQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditorClass(String.class, FloatStringQuickEditor.class); |
|
|
|
ActionFactory.registerFloatEditor(Formula.class, new FloatStringQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditorClass(Formula.class, FloatStringQuickEditor.class); |
|
|
|
ActionFactory.registerFloatEditor(Image.class, new FloatImageQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditorClass(Image.class, FloatImageQuickEditor.class); |
|
|
|
ActionFactory.registerFloatEditor(BufferedImage.class, new FloatImageQuickEditor()); |
|
|
|
ActionFactory.registerFloatEditorClass(BufferedImage.class, FloatImageQuickEditor.class); |
|
|
|
|
|
|
|
|
|
|
|
ActionFactory.registerChartFloatEditorInEditor(FloatChartQuickEditor.class); |
|
|
|
ActionFactory.registerChartFloatEditorInEditor(FloatChartQuickEditor.class); |
|
|
|
} |
|
|
|
} |
|
|
|