net.rim.device.api.ui
Interface ScrollChangeListener


public interface ScrollChangeListener

Listener interface for handling scroll events in field managers.

Field managers that want to handle scroll events should implement this interface. Field managers identify the listener object to handle scroll events with their setScrollListener method.

The caller of this method passes in the new horizontal and vertical scroll values, measured in pixels from the absolute top left corner of the manager. This pair of values describes the top left hand corner of the port (currently visible area) over the manager's actual size.

See Also:
Manager.setScrollListener(ScrollChangeListener)

Method Summary
 void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll)
          Called by a manager when its horizontal and/or vertical scrolling value changes.
 



Method Detail

scrollChanged

void scrollChanged(Manager manager,
                   int newHorizontalScroll,
                   int newVerticalScroll)
Called by a manager when its horizontal and/or vertical scrolling value changes.

Parameters:
manager - The manager whose scroll value changed.
newHorizontalScroll - The new horizontal scroll value, in pixels from the top left corner of the manager.
newVerticalScroll - The new vertical scroll value, in pixels from the top left corner of the manager.





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