public GridDef(String[] colTypes) { ColumnDef[] colsDef = new ColumnDef[colTypes.length]; ColumnDef colDef = null; String[] colTypeParts; for (int i = 0; i < colTypes.length; i++) { colTypeParts = colTypes[i].split("[|]"); colDef = new ColumnDef(colTypeParts[GridDefConstants.ColType_Index]); if (colTypeParts[GridDefConstants.ColType_Index].equalsIgnoreCase( GridDefConstants.ColType_Datebox)) { if (colTypeParts.length > 1) { colDef.setFormat(colTypeParts[GridDefConstants.ColFormat_Index]); } else { colDef.setFormat(GridDefConstants.Default_Date_Format); } } colsDef[i] = colDef; } this.setColumns(colsDef); }