09-13-2008 12:28 AM
09-13-2008 08:18 AM
09-15-2008 10:37 AM
You can use the method: setRowHeight(index, rowHeight); to set row heights.
Most of my ListFields are customized by extending the ObjectListField.
The setRowHeight() can be called during the drawListRow() or when you add elements ... (depending on your app)
Rab
09-15-2008 10:48 AM
Hi Rab,
Thanks very much.
I know the following method which sets the height of each row in the list field.
public void setRowHeight(int rowHeight)
It looks like setRowHeight(index, rowHeight) is undocument method.I am wondering if it is safe to use this method.
09-15-2008 04:13 PM
09-16-2008 03:37 AM
09-16-2008 03:51 PM
09-16-2008 05:48 PM
Interesting, my 4.3 JDE does not include it....
Can you paste in the javadoc description for us all to have a look at?
09-17-2008 10:04 AM
net.rim.device.api.ui.component
Class ListField
java.lang.Object
|
+--net.rim.device.api.ui.Field
|
+--net.rim.device.api.ui.component.ListField
All Implemented Interfaces: AccessibleContext, IComponent, InputMethodListener, VariableRowHeightProvider
Direct Known Subclasses: ObjectListField
...clip...
setRowHeight
public void setRowHeight(int rowHeight)
Sets the height of each row in the list field.
Parameters: rowHeight - Height of each row in the list field. Specifying ROW_HEIGHT_FONT will use the height of the font for this field. If this parameter is negative, it indicates the row height is in multiples of the height of the font for this field.
Throws: IllegalArgumentException - If invalid row height parameter (if zero, or too small proper display of current font).
Am I just lucky, or what??
09-17-2008 10:56 AM