public class IlvColumnUtilities extends Object
IlvModelWithColumns
(applicable to IlvModelWithColumns
and
IlvObjectModelWithColumns
).Modifier and Type | Method and Description |
---|---|
static String |
constructColumnName(int i)
Returns a default column name for the column i.
|
static IlvDataColumnInfo |
getColumnByName(IlvModelWithColumns model,
String name)
Returns metainformation about a column given by name.
|
static int |
getColumnIndex(IlvModelWithColumns model,
IlvDataColumnInfo column)
Returns the index of a column.
|
static int |
getColumnIndexByName(IlvModelWithColumns model,
String name)
Returns the index of a column given by name.
|
static IlvDataColumnInfo[] |
getColumnsArray(IlvModelWithColumns model)
Returns the list of columns of a model as an array.
|
static List<IlvDataColumnInfo> |
getColumnsList(IlvModelWithColumns model)
Returns the list of columns of a model as a list.
|
static boolean |
haveSameColumns(IlvModelWithColumns model1,
IlvModelWithColumns model2)
Determines whether two models have the same columns, in the same order.
|
public static int getColumnIndex(IlvModelWithColumns model, IlvDataColumnInfo column)
model
- A model.column
- The given column.-1
if the given column does not belong to the given model.public static int getColumnIndexByName(IlvModelWithColumns model, String name)
model
- A model.name
- A possible column name.-1
if there is no column with this name.public static IlvDataColumnInfo getColumnByName(IlvModelWithColumns model, String name)
model
- A model.name
- A possible column name.null
if there is no column with this name.public static boolean haveSameColumns(IlvModelWithColumns model1, IlvModelWithColumns model2)
public static IlvDataColumnInfo[] getColumnsArray(IlvModelWithColumns model)
public static List<IlvDataColumnInfo> getColumnsList(IlvModelWithColumns model)
IlvDataColumnInfo
.public static String constructColumnName(int i)
i
- A nonnegative integer.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.