: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.misc
Interface PosInfo

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

public interface PosInfo

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


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.


: up