net.rim.device.api.ui.component
Interface TreeFieldCallback


public interface TreeFieldCallback

Classes implement this interface to provide callback functionality to handle tree field drawing.


Method Summary
 void drawTreeItem(TreeField treeField, Graphics graphics, int node, int y, int width, int indent)
          Invoked when a particular tree item requires painting.
 



Method Detail

drawTreeItem

void drawTreeItem(TreeField treeField,
                  Graphics graphics,
                  int node,
                  int y,
                  int width,
                  int indent)
Invoked when a particular tree item requires painting.

The graphics context passed to this method represents the entire tree, not just the row for repainting. Accordingly, the y parameter indicates how far down in the field's extent the repaint should occur.

Parameters:
treeField - Tree field that requires repainting.
graphics - Graphics context for the list.
node - Row index to draw.
y - Distance from the top of the tree field for painting.
width - Width of the area remaining to draw the item (accounting for the indent).
indent - Number of pixels that should be reserved due to the nesting depth of the current item.





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal