public abstract class AbstractJemmyElement<T extends org.netbeans.jemmy.operators.ComponentOperator> extends Object implements IJemmyElement
IJemmyLabel) or read-write action (see AbstractJemmyInput).
This class is responsible to handle location of elements and handle errormessages (with help of the
getElement-method).
When implementing a new Jemmy Element, it should be a subclass of AbstractJemmyElement.| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
operatorType |
protected JemmyElementReference |
reference |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJemmyElement(JemmyElementReference reference,
Class<T> operatorType) |
| Modifier and Type | Method and Description |
|---|---|
protected JemmyContext |
getContext() |
T |
getOperator()
returns Jemmy's
Operator this Element is based on |
T |
getOperatorFast() |
boolean |
isDisplayed() |
boolean |
isSelected() |
protected void |
sleep(long timeInMillis)
Convenience-method
|
protected final JemmyElementReference reference
protected AbstractJemmyElement(JemmyElementReference reference, Class<T> operatorType)
protected JemmyContext getContext()
public T getOperator()
IJemmyElementOperator this Element is based ongetOperator in interface IJemmyElementpublic T getOperatorFast()
protected void sleep(long timeInMillis)
timeInMillis - time to sleep in Millisecondspublic boolean isDisplayed()
isDisplayed in interface IElementpublic boolean isSelected()
isSelected in interface IElementCopyright © 2017. All rights reserved.