de.matthiasmann.twl
Interface ScrollPane.CustomPageSize

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

public static interface ScrollPane.CustomPageSize

Custom page sizes for page scrolling and scroll bar thumb sizing. This is needed when the content has column or row headers.


Method Summary
 int getPageSizeX(int availableWidth)
          Computes the horizontal page size based on the available width.
 int getPageSizeY(int availableHeight)
          Computes the vertical page size based on the available height.
 

Method Detail

getPageSizeX

int getPageSizeX(int availableWidth)
Computes the horizontal page size based on the available width.

Parameters:
availableWidth - the available width (the visible area)
Returns:
the page size. Must be > 0 and <= availableWidth

getPageSizeY

int getPageSizeY(int availableHeight)
Computes the vertical page size based on the available height.

Parameters:
availableHeight - the available height (the visible area)
Returns:
the page size. Must be > 0 and <= availableHeight