@ -83,9 +83,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 ) ;
}
/ * *
* 创建基本的值编辑器面板
*
@ -156,11 +157,13 @@ public class ValueEditorPaneFactory {
/ * *
* 创建不带公式面板的pane
*
* @return 编辑器面板
* /
public static ValueEditorPane createBasicEditorWithoutFormulaPane ( ) {
public static ValueEditorPane createBasicEditorWithoutFormulaPane ( ) {
return createValueEditorPane ( basicEditorsWithoutFormula ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 创建NoCRNoColumn
*
@ -172,19 +175,22 @@ public class ValueEditorPaneFactory {
/ * *
* 创建数值编辑器
*
* @return 值编辑器
* /
public static ValueEditorPane createNumberValueEditorPane ( ) {
public static ValueEditorPane createNumberValueEditorPane ( ) {
return createValueEditorPane ( numberEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 创建日期编辑器
*
* @return 值编辑器
* /
public static ValueEditorPane createDateValueEditorPane ( ) {
public static ValueEditorPane createDateValueEditorPane ( ) {
return createValueEditorPane ( dateEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
* 根据参数paraUseType 创建编辑器类型 .
*
@ -221,12 +227,12 @@ 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 IntegerEditor ( ) ,
new Spinner IntegerEditor( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor
} ;
@ -238,12 +244,12 @@ 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 ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new WidgetNameEditor ( Inter . getLocText ( "Widget" ) )
@ -256,48 +262,50 @@ 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 ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) )
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_ Cell" ) )
} ;
}
/ * *
* 带单元格组的编辑器
* @return 值编辑器
* /
public static Editor < ? > [ ] extendedCellGroupEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "Cell_Group" ) )
} ;
}
/ * *
* 只有单元格和单元格组的编辑器
* @return 编辑器b
* /
public static Editor < ? > [ ] cellGroupEditor ( ) {
return new Editor [ ] {
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "Cell_Group" ) )
} ;
}
/ * *
* 带单元格组的编辑器
*
* @return 值编辑器
* /
public static Editor < ? > [ ] extendedCellGroupEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_Parameter-Formula" ) ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer-Cell_Group" ) )
} ;
}
/ * *
* 只有单元格和单元格组的编辑器
*
* @return 编辑器b
* /
public static Editor < ? > [ ] cellGroupEditor ( ) {
return new Editor [ ] {
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer-Cell_Group" ) )
} ;
}
/ * *
* URL的一些编辑器 .
@ -323,8 +331,8 @@ public class ValueEditorPaneFactory {
public static Editor < ? > [ ] dateEditors ( String popupName , String textEditorValue ) {
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 DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) )
} ;
}
@ -334,17 +342,17 @@ 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 ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_ Cell" ) ) ,
new ColumnSelectedEditor ( ) ,
//23328 allEditors中删除控件选项
// new WidgetNameEditor(Inter.getLocText("Widget"))
@ -353,14 +361,15 @@ public class ValueEditorPaneFactory {
/ * *
* 不带公式编辑器
*
* @return 编辑器不带公式
* /
public static Editor < ? > [ ] basicEditorsWithoutFormula ( ) {
public static Editor < ? > [ ] basicEditorsWithoutFormula ( ) {
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
} ;
}
@ -371,12 +380,12 @@ 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 ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
@ -385,10 +394,11 @@ public class ValueEditorPaneFactory {
/ * *
* 数值编辑器
* @return 编辑器
*
* @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 ( ) ,
@ -399,12 +409,13 @@ 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" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
formulaEditor ,
new ParameterEditor ( ) ,
} ;
@ -416,14 +427,14 @@ 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 ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor
} ;
@ -440,10 +451,10 @@ public class ValueEditorPaneFactory {
list . add ( new TextEditor ( ) ) ;
list . add ( new IntegerEditor ( ) ) ;
list . add ( new DoubleEditor ( ) ) ;
list . add ( new DateEditor ( true , Inter . getLocText ( "Date" ) ) ) ;
list . add ( new DateEditor ( true , Inter . getLocText ( "FR-Designer_ 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 ) ;