|
|
@ -1,7 +1,6 @@ |
|
|
|
package com.fr.design.formula; |
|
|
|
package com.fr.design.formula; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author Carlson |
|
|
|
* @author Carlson |
|
|
@ -13,10 +12,6 @@ public class DefaultTinyFormulaPane extends TinyFormulaPane{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void populateTextField(BaseFormula fm) { |
|
|
|
protected void populateTextField(BaseFormula fm) { |
|
|
|
if (fm.getContent().length() <= 1) { |
|
|
|
formulaTextField.setText(fm.getContent()); |
|
|
|
formulaTextField.setText(StringUtils.EMPTY); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
formulaTextField.setText(fm.getContent()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|