ObjectListFieldit's actually not the right way to do this - it is really designed as a quick version ListFieldfor those cases where you just need a simple list of strings.
ListField ListFieldCallback, . ListField.setCallback .
ListFieldCallback.drawListRow Graphics, , , . , ListField.setRowHeight , ( - , 1 ).
- - ( - ):
ListField myListField = new ListField();
myListField.setRowHeight(getFont().getHeight() * 2)
myListField.setCallback(new ListFieldCallback() {
public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) {
graphics.drawText(0, y, "ROW " + rowNumber);
graphics.drawText(20, y, "ROW NAME");
graphics.drawText(20, y + getFont().getHeight(), "row details");
}