: 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.lw
Interface Cursorable

All Known Implementing Classes:
DgnCursorInfo, InsetsCursorInfo, LwLink, LwSplitPan, LwTextField, LwWindow, SimpleCursorInfo, LwGridCaption

public interface Cursorable

This interface is used to provide cursor support for a lightweight component. Every lightweight component that implements the interface has to provide cursor type information to be used with lightweight cursor manager. For example if you want to change cursor type for your lightweight component, just implement the interface and return an appropriate cursor type by getCursorType method of the interface.


Method Summary
 int getCursorType(LwComponent target, int x, int y)
          Gets the cursor type for the specified location of the given component.
 

Method Detail

getCursorType

public int getCursorType(LwComponent target,
                         int x,
                         int y)
Gets the cursor type for the specified location of the given component. It is supposed to use set of cursors provided by java.awt.Cursor class.
Parameters:
target - the given component.
x - the x coordinate of the location.
y - the y coordinate of the location.
Returns:
a cursor type.


: up