org.alfresco.web.ui.common.component.data
Class GridListDataModel

java.lang.Object
  extended by org.alfresco.web.ui.common.component.data.GridListDataModel
All Implemented Interfaces:
java.io.Serializable, IGridDataModel

public class GridListDataModel
extends java.lang.Object
implements IGridDataModel

See Also:
Serialized Form

Constructor Summary
GridListDataModel(java.util.List data)
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridListDataModel

public GridListDataModel(java.util.List data)
Constructor

Parameters:
data - List of Object[] row data
Method Detail

getRow

public java.lang.Object getRow(int index)
Get a row object for the specified row index

Specified by:
getRow in interface IGridDataModel
Parameters:
index - valid row index
Returns:
row object for the specified index

size

public int size()
Return the number of rows in the data model

Specified by:
size in interface IGridDataModel
Returns:
row count

sort

public void sort(java.lang.String column,
                 boolean descending,
                 java.lang.String mode)
Sort the data set using the specified sort parameters

Specified by:
sort in interface IGridDataModel
Parameters:
column - Column to sort
descending - True for descending sort, false for ascending
mode - Sort mode to use (see IDataContainer constants)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.