@ -4,11 +4,25 @@
package com.fr.design.data.datapane ;
package com.fr.design.data.datapane ;
import com.fr.data.impl.* ;
import com.fine.theme.icon.LazyIcon ;
import com.fr.data.impl.ClassTableData ;
import com.fr.data.impl.ConditionTableData ;
import com.fr.data.impl.DBTableData ;
import com.fr.data.impl.EmbeddedTableData ;
import com.fr.data.impl.FileTableData ;
import com.fr.data.impl.RecursionTableData ;
import com.fr.data.impl.storeproc.StoreProcedure ;
import com.fr.data.impl.storeproc.StoreProcedure ;
import com.fr.design.ExtraDesignClassManager ;
import com.fr.design.ExtraDesignClassManager ;
import com.fr.design.data.tabledata.tabledatapane.* ;
import com.fr.design.data.tabledata.tabledatapane.ClassTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.DBTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.EmbeddedTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.FileTableDataSmallHeightPane ;
import com.fr.design.data.tabledata.tabledatapane.FileTableDataSmallPane ;
import com.fr.design.data.tabledata.tabledatapane.GlobalMultiTDTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.GlobalTreeTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.MultiTDTableDataPane ;
import com.fr.design.data.tabledata.tabledatapane.ProcedureDataPane ;
import com.fr.design.data.tabledata.tabledatapane.TreeTableDataPane ;
import com.fr.stable.ArrayUtils ;
import com.fr.stable.ArrayUtils ;
import java.util.ArrayList ;
import java.util.ArrayList ;
@ -33,33 +47,33 @@ public class TableDataCreatorProducer {
public TableDataNameObjectCreator [ ] createReportTableDataCreator ( ) {
public TableDataNameObjectCreator [ ] createReportTableDataCreator ( ) {
TableDataNameObjectCreator dataBase = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_DS_Database_Query" ) ,
TableDataNameObjectCreator dataBase = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_DS_Database_Query" ) ,
"ds" ,
"ds" ,
"/com/fr/design/standard/database_normal.svg" , DBTableData . class , DBTableDataPane . class ) ;
new LazyIcon ( "database" ) , DBTableData . class , DBTableDataPane . class ) ;
TableDataNameObjectCreator ds_Class = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Class" ) ,
TableDataNameObjectCreator ds_Class = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Class" ) ,
"Class" ,
"Class" ,
"/com/fr/design/standard/class_table_data_normal.svg" , ClassTableData . class , ClassTableDataPane . class ) ;
new LazyIcon ( "class_table_data" ) , ClassTableData . class , ClassTableDataPane . class ) ;
TableDataNameObjectCreator table = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Embedded" ) ,
TableDataNameObjectCreator table = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Embedded" ) ,
"Embedded" ,
"Embedded" ,
"/com/fr/design/standard/data_table_normal.svg" , EmbeddedTableData . class , EmbeddedTableDataPane . class ) ;
new LazyIcon ( "data_table" ) , EmbeddedTableData . class , EmbeddedTableDataPane . class ) ;
TableDataNameObjectCreator multiTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Relation" ) ,
TableDataNameObjectCreator multiTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Relation" ) ,
"Multi" ,
"Multi" ,
"/com/fr/design/standard/multi_normal.svg" , ConditionTableData . class , MultiTDTableDataPane . class ) {
new LazyIcon ( "multi" ) , ConditionTableData . class , MultiTDTableDataPane . class ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
return true ;
return true ;
}
}
} ;
} ;
TableDataNameObjectCreator fileTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_File" ) ,
TableDataNameObjectCreator fileTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_File" ) ,
"File" ,
"File" ,
"/com/fr/design/standard/file_normal.svg" , FileTableData . class , FileTableDataSmallHeightPane . class ) ;
new LazyIcon ( "file" ) , FileTableData . class , FileTableDataSmallHeightPane . class ) ;
TableDataNameObjectCreator treeTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Tree" ) ,
TableDataNameObjectCreator treeTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Tree" ) ,
"Tree" ,
"Tree" ,
"/com/fr/design/standard/tree_normal.svg" , RecursionTableData . class , TreeTableDataPane . class ) {
new LazyIcon ( "tree" ) , RecursionTableData . class , TreeTableDataPane . class ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
return true ;
return true ;
}
}
} ;
} ;
TableDataNameObjectCreator storeProcedure = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Datasource_Stored_Procedure" ) ,
TableDataNameObjectCreator storeProcedure = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Datasource_Stored_Procedure" ) ,
"Proc" ,
"Proc" ,
"/com/fr/design/standard/store_procedure_normal.svg" ,
new LazyIcon ( "store_procedure" ) ,
StoreProcedure . class , ProcedureDataPane . class ) {
StoreProcedure . class , ProcedureDataPane . class ) {
@Override
@Override
public boolean shouldInsertSeparator ( ) {
public boolean shouldInsertSeparator ( ) {
@ -72,33 +86,33 @@ public class TableDataCreatorProducer {
public TableDataNameObjectCreator [ ] createServerTableDataCreator ( ) {
public TableDataNameObjectCreator [ ] createServerTableDataCreator ( ) {
TableDataNameObjectCreator dataBase = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_DS_Database_Query" ) ,
TableDataNameObjectCreator dataBase = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_DS_Database_Query" ) ,
"/com/fr/design/standard/server_database_normal.svg" , DBTableData . class ,
new LazyIcon ( "server_database" ) , DBTableData . class ,
DBTableDataPane . class ) ;
DBTableDataPane . class ) ;
TableDataNameObjectCreator ds_Class = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Class" ) ,
TableDataNameObjectCreator ds_Class = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Class" ) ,
"/com/fr/design/standard/class_table_data_normal.svg" , ClassTableData . class ,
new LazyIcon ( "class_table_data" ) , ClassTableData . class ,
ClassTableDataPane . class ) ;
ClassTableDataPane . class ) ;
TableDataNameObjectCreator table = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Embedded" ) ,
TableDataNameObjectCreator table = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Embedded" ) ,
"/com/fr/design/standard/data_table_normal.svg" , EmbeddedTableData . class ,
new LazyIcon ( "data_table" ) , EmbeddedTableData . class ,
EmbeddedTableDataPane . class ) ;
EmbeddedTableDataPane . class ) ;
TableDataNameObjectCreator fileTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_File" ) ,
TableDataNameObjectCreator fileTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_File" ) ,
"/com/fr/design/standard/file_normal.svg" , FileTableData . class ,
new LazyIcon ( "file" ) , FileTableData . class ,
FileTableDataSmallPane . class ) ;
FileTableDataSmallPane . class ) ;
TableDataNameObjectCreator treeTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Tree" ) ,
TableDataNameObjectCreator treeTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Tree" ) ,
"/com/fr/design/standard/tree_normal.svg" ,
new LazyIcon ( "tree" ) ,
RecursionTableData . class , GlobalTreeTableDataPane . class ) {
RecursionTableData . class , GlobalTreeTableDataPane . class ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
return true ;
return true ;
}
}
} ;
} ;
TableDataNameObjectCreator multiTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Relation" ) ,
TableDataNameObjectCreator multiTable = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Relation" ) ,
"/com/fr/design/standard/multi_normal.svg" ,
new LazyIcon ( "multi" ) ,
ConditionTableData . class , GlobalMultiTDTableDataPane . class ) {
ConditionTableData . class , GlobalMultiTDTableDataPane . class ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
public boolean isNeedParameterWhenPopulateJControlPane ( ) {
return true ;
return true ;
}
}
} ;
} ;
TableDataNameObjectCreator storeProcedure = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Stored_Procedure" ) ,
TableDataNameObjectCreator storeProcedure = new TableDataNameObjectCreator ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Tabledata_Type_Stored_Procedure" ) ,
"/com/fr/design/standard/store_procedure_normal.svg" ,
new LazyIcon ( "store_procedure" ) ,
StoreProcedure . class , ProcedureDataPane . class ) {
StoreProcedure . class , ProcedureDataPane . class ) {
@Override
@Override
public boolean shouldInsertSeparator ( ) {
public boolean shouldInsertSeparator ( ) {