public class Device extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
block()
to block the device globally
only the contained device methods without owner will be granted |
boolean |
block(Object owner)
to block the device globally for the given owner
only the contained mouse methods having the same owner will be granted |
boolean |
isBlocked() |
boolean |
isInUse() |
boolean |
isNotLocal(Object owner) |
boolean |
isShouldRunCallback() |
boolean |
isSuspended() |
void |
setCallback(Object givenCallBack)
what to do if mouse is moved outside Sikuli's mouse protection
in case of event the user provided callBack.happened is called |
void |
setShouldRunCallback(boolean shouldRunCallback) |
static void |
setShouldTerminate() |
boolean |
unblock()
free the mouse globally after a block()
|
boolean |
unblock(Object ownerGiven)
free the mouse globally for this owner after a block(owner)
|
public static void setShouldTerminate()
public boolean isShouldRunCallback()
public void setShouldRunCallback(boolean shouldRunCallback)
public boolean isInUse()
public boolean isSuspended()
public boolean isBlocked()
public boolean isNotLocal(Object owner)
public boolean block()
public boolean block(Object owner)
owner
- Objectpublic boolean unblock()
public boolean unblock(Object ownerGiven)
ownerGiven
- Objectpublic void setCallback(Object givenCallBack)
givenCallBack
- Copyright © 2017. All rights reserved.