org.zaval.misc
Interface PosInfo

All Known Implementing Classes:
LwGrid, LwGridLayout, LwListLayout, LwScroll, LwTextField

public interface PosInfo

This interface is used to provide information for a PosController. The information will be used with the controller to organize navigation.


Method Summary
 int getLines()
          Gets the number of lines.
 int getLineSize(int line)
          Gets the line size for the specified line number.
 int getMaxOffset()
          Gets the maximal offset.
 

Method Detail

getLines

public int getLines()
Gets the number of lines.
Returns:
a number of lines.

getLineSize

public int getLineSize(int line)
Gets the line size for the specified line number.
Parameters:
line - the specified line number.
Returns:
a size of the line.

getMaxOffset

public int getMaxOffset()
Gets the maximal offset. The method can return -1 as the result, in this case the pos controller that uses the pos info will try to calculate the maximal offset itself basing on the line number and the lines sizes.
Returns:
a maximal offset.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org