|
|
|
@ -3,8 +3,6 @@ package com.fr.quickeditor.cellquick;
|
|
|
|
|
import com.fr.base.Formula; |
|
|
|
|
import com.fr.base.Style; |
|
|
|
|
import com.fr.base.TextFormat; |
|
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
|
import com.fr.design.actions.insert.cell.FormulaCellAction; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.grid.selection.CellSelection; |
|
|
|
|
import com.fr.quickeditor.CellQuickEditor; |
|
|
|
@ -25,7 +23,6 @@ import java.awt.event.KeyEvent;
|
|
|
|
|
*/ |
|
|
|
|
public class CellStringQuickEditor extends CellQuickEditor { |
|
|
|
|
|
|
|
|
|
private Object selectedItem; |
|
|
|
|
//instance
|
|
|
|
|
private static CellStringQuickEditor THIS; |
|
|
|
|
//文本域
|
|
|
|
@ -101,7 +98,6 @@ public class CellStringQuickEditor extends CellQuickEditor {
|
|
|
|
|
textFormula.setReserveInResult(reserveInResult); |
|
|
|
|
textFormula.setReserveOnWriteOrAnaly(reserveOnWriteOrAnaly); |
|
|
|
|
cellElement.setValue(textFormula); |
|
|
|
|
selectedItem = ActionFactory.createAction(FormulaCellAction.class); |
|
|
|
|
} else { |
|
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
|
if (style != null && style.getFormat() != null && style.getFormat() == TextFormat.getInstance()) { |
|
|
|
@ -109,7 +105,6 @@ public class CellStringQuickEditor extends CellQuickEditor {
|
|
|
|
|
} else { |
|
|
|
|
cellElement.setValue(ReportHelper.convertGeneralStringAccordingToExcel(tmpText)); |
|
|
|
|
} |
|
|
|
|
selectedItem = null; |
|
|
|
|
} |
|
|
|
|
fireTargetModified(); |
|
|
|
|
stringTextField.requestFocus(); |
|
|
|
@ -158,7 +153,7 @@ public class CellStringQuickEditor extends CellQuickEditor {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Object getComboBoxSelected() { |
|
|
|
|
return selectedItem; |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |