You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
769 B
29 lines
769 B
package com.fr.design.formula; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
import com.fr.design.fun.UIFormulaProcessor; |
|
|
|
/** |
|
* @author richie |
|
* @date 2015-04-17 |
|
* @since 8.0 |
|
* 公式编辑器管理器 |
|
*/ |
|
public class FormulaFactory { |
|
|
|
public static UIFormula createFormulaPane() { |
|
return get().appearanceFormula(); |
|
} |
|
|
|
public static UIFormula createFormulaPaneWhenReserveFormula() { |
|
return get().appearanceWhenReserveFormula(); |
|
} |
|
|
|
private static UIFormulaProcessor get() { |
|
UIFormulaProcessor processor = ExtraDesignClassManager.getInstance().getSingle(UIFormulaProcessor.MARK_STRING); |
|
if (processor == null) { |
|
processor = new DefaultUIFormulaProcessor(); |
|
} |
|
return processor; |
|
} |
|
} |