net.rim.device.api.ui.component.table
Class RichListDataTemplate
java.lang.Object
net.rim.device.api.ui.component.table.DataTemplate
net.rim.device.api.ui.component.table.RichListDataTemplate
public class RichListDataTemplate
- extends DataTemplate
This class describes a default implementation of a DataTemplate for the needs of the RichList class.
All model Strings become LabelFields that use all available width, truncate with an ellipses and are focusable.
All model Bitmaps become BitmapFields with no style.
All model Fields remain as they are.
Anything else is ignored.
- Since:
- BlackBerry API 6.0.0
Method Summary |
Field[] |
getDataFields(int modelRowIndex)
Given an index for a model row, this method reads the row from the model and returns an array of fields encompassing the data found. |
Methods inherited from class net.rim.device.api.ui.component.table.DataTemplate |
createRegion, createRegion, getColumnProperties, getNumberOfColumns, getNumberOfRegions, getNumberOfRows, getRowProperties, getView, isFixedHeight, setColumnProperties, setPosition, setRowProperties, useFixedHeight |
RichListDataTemplate
public RichListDataTemplate(DataView view,
int rows,
int columns)
- Creates an instance of a RichListDataTemplate.
- Parameters:
view
- The DataView object to which this RichListDataTemplate will be associated.rows
- The number of region rows in the RichListDataTemplate.columns
- The number of region columns in the RichListDataTemplate- Since:
- BlackBerry API 6.0.0
getDataFields
public Field[] getDataFields(int modelRowIndex)
- Given an index for a model row, this method reads the row from the model and returns an array of fields encompassing the data found.
The fields are created as described in
RichListDataTemplate
.
- Specified by:
getDataFields
in class DataTemplate
- Parameters:
modelRowIndex
- An integer representing the row index in the model associated to the view of this DataTemplate.
- Returns:
- An array of Field objects that represent the data found at the specified model row.
- Since:
- BlackBerry API 6.0.0
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.