de.matthiasmann.twl
Interface ScrollPane.AutoScrollable

All Known Implementing Classes:
FileTable, PropertySheet, Table, TableBase, TreeTable
Enclosing class:
ScrollPane

public static interface ScrollPane.AutoScrollable

Custom auto scroll area checking. This is needed when the content has column headers.


Method Summary
 int getAutoScrollDirection(Event evt, int autoScrollArea)
          Returns the auto scroll direction for the specified mouse event.
 

Method Detail

getAutoScrollDirection

int getAutoScrollDirection(Event evt,
                           int autoScrollArea)
Returns the auto scroll direction for the specified mouse event.

Parameters:
evt - the mouse event which could trigger an auto scroll
autoScrollArea - the size of the auto scroll area. This is a theme parameter of the ScrollPane
Returns:
the auto scroll direction. -1 for upwards 0 for no auto scrolling +1 for downwards
See Also:
ScrollPane.checkAutoScroll(de.matthiasmann.twl.Event)