public class GridArrayDataModel extends java.lang.Object implements IGridDataModel
| Constructor and Description |
|---|
GridArrayDataModel(java.lang.Object[] data)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.lang.String column,
boolean descending,
java.lang.String mode)
Sort the data set using the specified sort parameters
|
public GridArrayDataModel(java.lang.Object[] data)
data - Array of Object (beans) row datapublic java.lang.Object getRow(int index)
getRow in interface IGridDataModelindex - valid row indexpublic int size()
size in interface IGridDataModelpublic void sort(java.lang.String column,
boolean descending,
java.lang.String mode)
sort in interface IGridDataModelcolumn - Column to sortdescending - True for descending sort, false for ascendingmode - Sort mode to use (see IDataContainer constants)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.