@ -19,17 +19,18 @@ import com.fr.design.editor.editor.TextEditor;
import com.fr.design.editor.editor.WidgetNameEditor ;
import com.fr.design.editor.editor.WidgetNameEditor ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.itableeditorpane.ParameterTableModel ;
import com.fr.design.gui.itableeditorpane.ParameterTableModel ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.stable.StringUtils ;
import com.fr.stable.StringUtils ;
import javax.swing.* ;
import java.awt.BorderLayout ;
import java.awt.* ;
import java.util.ArrayList ;
import java.util.ArrayList ;
import java.util.HashMap ;
import java.util.HashMap ;
import java.util.Iterator ;
import java.util.Iterator ;
import java.util.List ;
import java.util.List ;
import java.util.Map ;
import java.util.Map ;
import javax.swing.JPanel ;
public class ValueEditorPaneFactory {
public class ValueEditorPaneFactory {
@ -155,6 +156,16 @@ public class ValueEditorPaneFactory {
return createValueEditorPane ( allEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
return createValueEditorPane ( allEditors ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
}
/ * *
* 带有所有编辑器的ValueEditorPane
* 同时需要注册全局监听的编辑器注册下监听
*
* @return 值编辑器面板
* /
public static ValueEditorPane createAllValueEditorPaneWithGlobalListener ( ) {
return createValueEditorPane ( allEditorsWithGlobalListener ( ) , StringUtils . EMPTY , StringUtils . EMPTY ) ;
}
/ * *
/ * *
* 创建不带公式面板的pane
* 创建不带公式面板的pane
*
*
@ -359,6 +370,29 @@ public class ValueEditorPaneFactory {
} ;
} ;
}
}
/ * *
* 所有类型的编辑器
* 同时注册需要的监听
*
* @return 值编辑器
* /
public static Editor < ? > [ ] allEditorsWithGlobalListener ( ) {
FormulaEditor formulaEditor = new FormulaEditor ( Toolkit . i18nText ( "Fine-Design_Basic_Parameter_Formula" ) ) ;
ColumnSelectedEditor columnSelectedEditor = new ColumnSelectedEditor ( ) ;
columnSelectedEditor . registerDSChangeListener ( ) ;
return new Editor [ ] {
new TextEditor ( ) ,
new IntegerEditor ( ) ,
new DoubleEditor ( ) ,
new DateEditor ( true , Toolkit . i18nText ( "Fine-Design_Basic_Date" ) ) ,
new BooleanEditor ( ) ,
formulaEditor ,
new ParameterEditor ( ) ,
new ColumnRowEditor ( Toolkit . i18nText ( "Fine-Design_Basic_Cell" ) ) ,
columnSelectedEditor ,
} ;
}
/ * *
/ * *
* 不带公式编辑器
* 不带公式编辑器
*
*