@ -65,9 +65,10 @@ public class ValueEditorPaneFactory {
* @return 返回公式编辑器面板
* @return 返回公式编辑器面板
* /
* /
public static ValueEditorPane createFormulaValueEditorPane ( ) {
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 ) ;
StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
}
/ * *
/ * *
* 创建基本的值编辑器面板
* 创建基本的值编辑器面板
*
*
@ -138,11 +139,13 @@ public class ValueEditorPaneFactory {
/ * *
/ * *
* 创建不带公式面板的pane
* 创建不带公式面板的pane
*
* @return 编辑器面板
* @return 编辑器面板
* /
* /
public static ValueEditorPane createBasicEditorWithoutFormulaPane ( ) {
public static ValueEditorPane createBasicEditorWithoutFormulaPane ( ) {
return createValueEditorPane ( basicEditorsWithoutFormula ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
return createValueEditorPane ( basicEditorsWithoutFormula ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
}
/ * *
/ * *
* 创建NoCRNoColumn
* 创建NoCRNoColumn
*
*
@ -154,19 +157,22 @@ public class ValueEditorPaneFactory {
/ * *
/ * *
* 创建数值编辑器
* 创建数值编辑器
*
* @return 值编辑器
* @return 值编辑器
* /
* /
public static ValueEditorPane createNumberValueEditorPane ( ) {
public static ValueEditorPane createNumberValueEditorPane ( ) {
return createValueEditorPane ( numberEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
return createValueEditorPane ( numberEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
}
/ * *
/ * *
* 创建日期编辑器
* 创建日期编辑器
*
* @return 值编辑器
* @return 值编辑器
* /
* /
public static ValueEditorPane createDateValueEditorPane ( ) {
public static ValueEditorPane createDateValueEditorPane ( ) {
return createValueEditorPane ( dateEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
return createValueEditorPane ( dateEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
}
/ * *
/ * *
* 根据参数paraUseType 创建编辑器类型 .
* 根据参数paraUseType 创建编辑器类型 .
*
*
@ -199,12 +205,12 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* @return 值编辑器
* /
* /
public static Editor < ? > [ ] basicEditors ( ) {
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 [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new Spinner IntegerEditor( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor
formulaEditor
} ;
} ;
@ -216,12 +222,12 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* @return 值编辑器
* /
* /
public static Editor < ? > [ ] formEditors ( ) {
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 [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor ,
formulaEditor ,
new WidgetNameEditor ( Inter . getLocText ( "Widget" ) )
new WidgetNameEditor ( Inter . getLocText ( "Widget" ) )
@ -234,48 +240,50 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* @return 值编辑器
* /
* /
public static Editor < ? > [ ] extendedEditors ( ) {
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 ( "FR-Designer_Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_Cell" ) )
} ;
}
/ * *
* 带单元格组的编辑器
*
* @return 值编辑器
* /
public static Editor < ? > [ ] extendedCellGroupEditors ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "FR-Designer_Parameter-Formula" ) ) ;
return new Editor [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor ,
formulaEditor ,
new ParameterEditor ( ) ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) )
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_Cell" ) ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer-Cell_Group" ) )
} ;
} ;
}
}
/ * *
/ * *
* 带单元格组的编辑器
* 只有单元格和单元格组的编辑器
* @return 值编辑器
*
* /
* @return 编辑器b
public static Editor < ? > [ ] extendedCellGroupEditors ( ) {
* /
FormulaEditor formulaEditor = new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) ) ;
public static Editor < ? > [ ] cellGroupEditor ( ) {
return new Editor [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_Cell" ) ) ,
new IntegerEditor ( ) ,
new ColumnRowGroupEditor ( Inter . getLocText ( "FR-Designer-Cell_Group" ) )
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" ) )
} ;
}
/ * *
/ * *
* URL的一些编辑器 .
* URL的一些编辑器 .
@ -301,8 +309,8 @@ public class ValueEditorPaneFactory {
public static Editor < ? > [ ] dateEditors ( String popupName , String textEditorValue ) {
public static Editor < ? > [ ] dateEditors ( String popupName , String textEditorValue ) {
return new Editor [ ] {
return new Editor [ ] {
new NoneEditor ( textEditorValue , StringUtils . isEmpty ( popupName ) ? Inter . getLocText ( "None" ) : popupName ) ,
new NoneEditor ( textEditorValue , StringUtils . isEmpty ( popupName ) ? Inter . getLocText ( "None" ) : popupName ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new FormulaEditor ( Inter . getLocText ( "Parameter-Formula" ) )
new FormulaEditor ( Inter . getLocText ( "FR-Designer_ Parameter-Formula" ) )
} ;
} ;
}
}
@ -312,17 +320,17 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* @return 值编辑器
* /
* /
public static Editor < ? > [ ] allEditors ( ) {
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);
// formulaEditor.setEnabled(true);
return new Editor [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor ,
formulaEditor ,
new ParameterEditor ( ) ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Inter . getLocText ( "Cell" ) ) ,
new ColumnRowEditor ( Inter . getLocText ( "FR-Designer_ Cell" ) ) ,
new ColumnSelectedEditor ( ) ,
new ColumnSelectedEditor ( ) ,
//23328 allEditors中删除控件选项
//23328 allEditors中删除控件选项
// new WidgetNameEditor(Inter.getLocText("Widget"))
// new WidgetNameEditor(Inter.getLocText("Widget"))
@ -331,14 +339,15 @@ public class ValueEditorPaneFactory {
/ * *
/ * *
* 不带公式编辑器
* 不带公式编辑器
*
* @return 编辑器不带公式
* @return 编辑器不带公式
* /
* /
public static Editor < ? > [ ] basicEditorsWithoutFormula ( ) {
public static Editor < ? > [ ] basicEditorsWithoutFormula ( ) {
return new Editor [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
} ;
} ;
}
}
@ -349,12 +358,12 @@ public class ValueEditorPaneFactory {
* @return 编辑器
* @return 编辑器
* /
* /
public static Editor < ? > [ ] noCRnoColumnEditors ( ) {
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 [ ] {
return new Editor [ ] {
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor ,
formulaEditor ,
new ParameterEditor ( ) ,
new ParameterEditor ( ) ,
@ -363,10 +372,11 @@ public class ValueEditorPaneFactory {
/ * *
/ * *
* 数值编辑器
* 数值编辑器
* @return 编辑器
*
* @return 编辑器
* /
* /
public static Editor < ? > [ ] numberEditors ( ) {
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 [ ] {
return new Editor [ ] {
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
@ -377,12 +387,13 @@ public class ValueEditorPaneFactory {
/ * *
/ * *
* 日期编辑器
* 日期编辑器
*
* @return 编辑器
* @return 编辑器
* /
* /
public static Editor < ? > [ ] dateEditors ( ) {
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 [ ] {
return new Editor [ ] {
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
formulaEditor ,
formulaEditor ,
new ParameterEditor ( ) ,
new ParameterEditor ( ) ,
} ;
} ;
@ -394,14 +405,14 @@ public class ValueEditorPaneFactory {
* @return 存储过程的编辑器
* @return 存储过程的编辑器
* /
* /
public static Editor < ? > [ ] StoreProcedureEditors ( ) {
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 ) ;
formulaEditor . setEnabled ( true ) ;
return new Editor [ ] {
return new Editor [ ] {
new CursorEditor ( ) ,
new CursorEditor ( ) ,
new TextEditor ( ) ,
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Inter . getLocText ( "Date" ) ) ,
new DateEditor ( true , Inter . getLocText ( "FR-Designer_ Date" ) ) ,
new BooleanEditor ( ) ,
new BooleanEditor ( ) ,
formulaEditor
formulaEditor
} ;
} ;
@ -419,10 +430,10 @@ public class ValueEditorPaneFactory {
list . add ( new TextEditor ( ) ) ;
list . add ( new TextEditor ( ) ) ;
list . add ( new IntegerEditor ( ) ) ;
list . add ( new IntegerEditor ( ) ) ;
list . add ( new DoubleEditor ( ) ) ;
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 ( ) ) ;
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 ) ;
formulaEditor . setEnabled ( true ) ;
list . add ( formulaEditor ) ;
list . add ( formulaEditor ) ;
@ -436,31 +447,31 @@ public class ValueEditorPaneFactory {
* @return 值编辑器
* @return 值编辑器
* /
* /
private static List < Editor > createEditors4Chart ( int paraUseType ) {
private static List < Editor > createEditors4Chart ( int paraUseType ) {
if ( paraUseType = = ParameterTableModel . CHART_PIE_USE ) {
switch ( paraUseType ) {
return getPieEditor ( ) ;
case ParameterTableModel . CHART_PIE_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_MAP_USE ) {
return getPieEditor ( ) ;
return getMapEditor ( ) ;
case ParameterTableModel . CHART_MAP_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_GIS_USE ) {
return getMapEditor ( ) ;
return getGisEditor ( ) ;
case ParameterTableModel . CHART_GIS_USE :
} else if ( paraUseType = = ParameterTableModel . CHART__XY_USE ) {
return getGisEditor ( ) ;
return getXYEditor ( ) ;
case ParameterTableModel . CHART__XY_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_BUBBLE_USE ) {
return getXYEditor ( ) ;
return getBubbbleEdtor ( ) ;
case ParameterTableModel . CHART_BUBBLE_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_NO_USE ) {
return getBubbbleEdtor ( ) ;
return getChartNoUseEditor ( ) ;
case ParameterTableModel . CHART_NO_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_METER_USE ) {
return getChartNoUseEditor ( ) ;
return getMeterEditor ( ) ;
case ParameterTableModel . CHART_METER_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_STOCK_USE ) {
return getMeterEditor ( ) ;
return getStockEditor ( ) ;
case ParameterTableModel . CHART_STOCK_USE :
} else if ( paraUseType = = ParameterTableModel . CHART_GANTT_USE ) {
return getStockEditor ( ) ;
return getGanttEditor ( ) ;
case ParameterTableModel . CHART_GANTT_USE :
} else if ( paraUseType = = ParameterTableModel . FORM_ELEMENTCASE_USE ) {
return getGanttEditor ( ) ;
return getFormElementCaseEditor ( ) ;
case ParameterTableModel . FORM_ELEMENTCASE_USE :
} else if ( paraUseType = = ParameterTableModel . FORM_CHART_USE ) {
return getFormElementCaseEditor ( ) ;
return getFormChartEditor ( ) ;
case ParameterTableModel . FORM_CHART_USE :
}
return getFormChartEditor ( ) ;
else {
default :
return getChartEditor ( ) ;
return getChartEditor ( ) ;
}
}
}
}