org.zaval.lw.gdp
Class SimpleCursorInfo
java.lang.Object
|
+--org.zaval.lw.gdp.SimpleCursorInfo
- All Implemented Interfaces:
- Cursorable
- public class SimpleCursorInfo
- extends java.lang.Object
- implements Cursorable
This class is a simple implementation of org.zaval.lw.Cursorable interface. Using the implementation
it is possible to bind the cursor type with the specified target component.
|
Constructor Summary |
SimpleCursorInfo(int t)
Constructs a new simple cursor info with the specified cursor type.
|
|
Method Summary |
int |
getCursorType(LwComponent target,
int x,
int y)
Returns the cursor type for the specified component and location relatively the component.
|
void |
setCursorType(int t)
Sets the specified cursor type that will be returned by getCursorType
method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCursorInfo
public SimpleCursorInfo(int t)
- Constructs a new simple cursor info with the specified cursor type.
The cursor info will always return the cursor type by
getCursorType
method.
- Parameters:
t - the specified cursor type.
setCursorType
public void setCursorType(int t)
- Sets the specified cursor type that will be returned by
getCursorType
method.
- Parameters:
t - the specified cursor type.
getCursorType
public int getCursorType(LwComponent target,
int x,
int y)
- Returns the cursor type for the specified component and location relatively the component.
The method implementation returns a cursor type that has been defined by
setCursorType
method or during the class initialization.
- Specified by:
getCursorType in interface Cursorable
- Parameters:
target - the specified component.x - the specified x coordinate relatively the component.y - the specified y coordinate relatively the component.
|