|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.controls.ListControlCallBack
public class ListControlCallBack
List Control Call back class Used by the List Field to update and draw the rows
Constructor Summary | |
---|---|
ListControlCallBack()
|
Method Summary | |
---|---|
void |
drawListRow(net.rim.device.api.ui.component.ListField listField,
net.rim.device.api.ui.Graphics graphics,
int index,
int y,
int width)
Invoked when a particular row requires painting |
java.lang.Object |
get(net.rim.device.api.ui.component.ListField listField,
int index)
Retrieves an item from list. |
int |
getPreferredWidth(net.rim.device.api.ui.component.ListField listField)
Retrieves this list field's preferred width |
int |
indexOfList(net.rim.device.api.ui.component.ListField listField,
java.lang.String prefix,
int start)
Retrieves first occurence of prefix in list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListControlCallBack()
Method Detail |
---|
public void drawListRow(net.rim.device.api.ui.component.ListField listField, net.rim.device.api.ui.Graphics graphics, int index, int y, int width)
drawListRow
in interface net.rim.device.api.ui.component.ListFieldCallback
listField
- - List field that requires repainting.graphics
- - Graphics context for the list.index
- - Row index to display.y
- - Distance from the top of the list field at which to start painting.width
- - Width of the field.public java.lang.Object get(net.rim.device.api.ui.component.ListField listField, int index)
get
in interface net.rim.device.api.ui.component.ListFieldCallback
listField
- - List field to search throughindex
- - Row index containing desired item
public int getPreferredWidth(net.rim.device.api.ui.component.ListField listField)
getPreferredWidth
in interface net.rim.device.api.ui.component.ListFieldCallback
listField
- - List field for which to determine preferred width.
public int indexOfList(net.rim.device.api.ui.component.ListField listField, java.lang.String prefix, int start)
indexOfList
in interface net.rim.device.api.ui.component.ListFieldCallback
listField
- - List field in which to search.prefix
- - Prefix to search for.start
- - List item at which commence the search.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |