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.
|
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.
|