com.cc.framework.ui.model
Interface ListDataModel

All Superinterfaces:
DataModel
All Known Implementing Classes:
KeyListDataModel, VirtualKeyListDataModel, VirtualListDataModel

public interface ListDataModel
extends DataModel

Data model for the ListControl

Version:
$Revision: 1.6 $, 1.0
Author:
Harald Schulz

Method Summary
 java.lang.Object getElementAt(int index)
          Returns the (row) object for the specified index.
 java.lang.String getUniqueKey(int index)
          Returns a unique key for the row which is specified by the index.
 int size()
          Returns the number of rows within the list.
 

Method Detail

getElementAt

public java.lang.Object getElementAt(int index)
Returns the (row) object for the specified index. This can be a display object (view helper) whose properties will be accessed within the columns of a List- or TreeControl

Parameters:
index - A zero based index
Returns:
A row object.

size

public int size()
Returns the number of rows within the list.

Returns:
Number of rows

getUniqueKey

public java.lang.String getUniqueKey(int index)
Returns a unique key for the row which is specified by the index. This id will be attached in hyperlinks to identify the row/object. This can be a simple row index or a key which correspond to the primary key from the database.

Parameters:
index - A zero based index
Returns:
The unique key


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.