public class GridArrayDataModel extends Object implements IGridDataModel
Constructor and Description |
---|
GridArrayDataModel(Object[] data)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
getRow(int index)
Get a row object for the specified row index
|
int |
size()
Return the number of rows in the data model
|
void |
sort(String column,
boolean descending,
String mode)
Sort the data set using the specified sort parameters
|
public GridArrayDataModel(Object[] data)
data
- Array of Object (beans) row datapublic Object getRow(int index)
getRow
in interface IGridDataModel
index
- valid row indexpublic int size()
size
in interface IGridDataModel
public void sort(String column, boolean descending, String mode)
sort
in interface IGridDataModel
column
- Column to sortdescending
- True for descending sort, false for ascendingmode
- Sort mode to use (see IDataContainer constants)Copyright © 2005–2017 Alfresco Software. All rights reserved.