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.
index - 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-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.