|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jubula.rc.swing.swing.implclasses.AbstractSwingImplClass
org.eclipse.jubula.rc.swing.swing.implclasses.AbstractButtonImplClass
public class AbstractButtonImplClass
The implementation class for AbstractButton
and subclasses.
Note the "Abstract" in the class name implies only that this class can test
AbstractButton
components. The class itself should NOT
be designated abstract
, as this class is instantiated using
reflection.
Field Summary |
---|
Fields inherited from class org.eclipse.jubula.rc.swing.swing.implclasses.AbstractSwingImplClass |
---|
INDEX_LIST_SEP_CHAR, POS_UNI_PERCENT, POS_UNIT_PIXEL, RENDERER_FALLBACK_TEXT_GETTER_METHOD_1, RENDERER_FALLBACK_TEXT_GETTER_METHOD_2, VALUE_SEPARATOR |
Constructor Summary | |
---|---|
AbstractButtonImplClass()
|
Method Summary | |
---|---|
void |
gdClick(int count)
Clicks the button count times. |
java.lang.String |
gdReadValue(java.lang.String variable)
Action to read the value of a JButton to store it in a variable in the Client |
void |
gdVerifyEnabled(boolean enabled)
Verifies the enabled property. |
void |
gdVerifySelected(boolean selected)
Verifies the selected property. |
void |
gdVerifyText(java.lang.String text)
Verifies the passed text. |
void |
gdVerifyText(java.lang.String text,
java.lang.String operator)
Verifies the passed text. |
javax.swing.JComponent |
getComponent()
|
protected java.lang.String |
getText()
Get a String representation of the "text" of the component. |
java.lang.String[] |
getTextArrayFromComponent()
Returns a descriptive text array that represents the given gui component. |
void |
setComponent(java.lang.Object graphicsComponent)
Set the component the methods this implementation class implements have to work with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractButtonImplClass()
Method Detail |
---|
public void setComponent(java.lang.Object graphicsComponent)
graphicsComponent
- the component from the AUT control
affects
the AUT.public javax.swing.JComponent getComponent()
getComponent
in class AbstractSwingImplClass
public void gdClick(int count)
count
times.
count
- The number of clickspublic void gdVerifySelected(boolean selected)
selected
- The selected property value to verify.public void gdVerifyText(java.lang.String text, java.lang.String operator)
text
- The text to verifyoperator
- The RegEx operator used to verifypublic void gdVerifyText(java.lang.String text)
text
- The text to verifypublic void gdVerifyEnabled(boolean enabled)
enabled
property.
gdVerifyEnabled
in class AbstractSwingImplClass
enabled
- The enabled
property value to verifypublic java.lang.String gdReadValue(java.lang.String variable)
variable
- the name of the variable
public java.lang.String[] getTextArrayFromComponent()
protected java.lang.String getText()
AbstractSwingImplClass
getText
in class AbstractSwingImplClass
AbstractButton.getText()
valueAbstractSwingImplClass.getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |