@ -65,9 +65,10 @@ public class ValueEditorPaneFactory {
* @return 返回公式编辑器面板
* /
public static ValueEditorPane createFormulaValueEditorPane ( ) {
return createValueEditorPane ( new Editor [ ] { new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) } ,
return createValueEditorPane ( new Editor [ ] { new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) } ,
StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 创建基本的值编辑器面板
*
@ -138,11 +139,13 @@ public class ValueEditorPaneFactory {
/ * *
* 创建不带公式面板的pane
*
* @return 编辑器面板
* /
public static ValueEditorPane createBasicEditorWithoutFormulaPane ( ) {
return createValueEditorPane ( basicEditorsWithoutFormula ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 创建NoCRNoColumn
*
@ -154,6 +157,7 @@ public class ValueEditorPaneFactory {
/ * *
* 创建数值编辑器
*
* @return 值编辑器
* /
public static ValueEditorPane createNumberValueEditorPane ( ) {
@ -162,11 +166,13 @@ public class ValueEditorPaneFactory {
/ * *
* 创建日期编辑器
*
* @return 值编辑器
* /
public static ValueEditorPane createDateValueEditorPane ( ) {
return createValueEditorPane ( dateEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 根据参数paraUseType 创建编辑器类型 .
*
@ -199,7 +205,7 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* /
public static Editor < ? > [ ] basicEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new SpinnerIntegerEditor ( ) ,
@ -216,7 +222,7 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* /
public static Editor < ? > [ ] formEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
@ -234,7 +240,7 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* /
public static Editor < ? > [ ] extendedEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
@ -249,10 +255,11 @@ public class ValueEditorPaneFactory {
/ * *
* 带单元格组的编辑器
*
* @return 值编辑器
* /
public static Editor < ? > [ ] extendedCellGroupEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
@ -262,18 +269,19 @@ public class ValueEditorPaneFactory {
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "Cell_Group" ) )
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer- Cell_Group" ) )
} ;
}
/ * *
* 只有单元格和单元格组的编辑器
*
* @return 编辑器b
* /
public static Editor < ? > [ ] cellGroupEditor ( ) {
return new Editor [ ] {
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "Cell_Group" ) )
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer- Cell_Group" ) )
} ;
}
@ -302,7 +310,7 @@ public class ValueEditorPaneFactory {
return new Editor [ ] {
new NoneEditor ( textEditorValue , StringUtils . isEmpty ( popupName ) ? Inter . getLocText ( "None" ) : popupName ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) )
new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) )
} ;
}
@ -312,7 +320,7 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* /
public static Editor < ? > [ ] allEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
// formulaEditor.setEnabled(true);
return new Editor [ ] {
new TextEditor ( ) ,
@ -331,6 +339,7 @@ public class ValueEditorPaneFactory {
/ * *
* 不带公式编辑器
*
* @return 编辑器不带公式
* /
public static Editor < ? > [ ] basicEditorsWithoutFormula ( ) {
@ -349,7 +358,7 @@ public class ValueEditorPaneFactory {
* @return 编辑器
* /
public static Editor < ? > [ ] noCRnoColumnEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
@ -363,10 +372,11 @@ public class ValueEditorPaneFactory {
/ * *
* 数值编辑器
*
* @return 编辑器
* /
public static Editor < ? > [ ] numberEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
@ -377,10 +387,11 @@ public class ValueEditorPaneFactory {
/ * *
* 日期编辑器
*
* @return 编辑器
* /
public static Editor < ? > [ ] dateEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
return new Editor [ ] {
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
formulaEditor ,
@ -394,7 +405,7 @@ public class ValueEditorPaneFactory {
* @return 存储过程的编辑器
* /
public static Editor < ? > [ ] StoreProcedureEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
formulaEditor . setEnabled ( true ) ;
return new Editor [ ] {
new CursorEditor ( ) ,
@ -422,7 +433,7 @@ public class ValueEditorPaneFactory {
list . add ( new DateEditor ( true , Inter . getLocText ( "Date" ) ) ) ;
list . add ( new BooleanEditor ( ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) ) ;
formulaEditor . setEnabled ( true ) ;
list . add ( formulaEditor ) ;
@ -458,8 +469,7 @@ public class ValueEditorPaneFactory {
return getFormElementCaseEditor ( ) ;
} else if ( paraUseType = = ParameterTableModel . FORM_CHART_USE ) {
return getFormChartEditor ( ) ;
}
else {
} else {
return getChartEditor ( ) ;
}
}