|
|||||||||
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.JListImplClass
public class JListImplClass
The implementation class for JList
.
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 | |
---|---|
JListImplClass()
|
Method Summary | |
---|---|
void |
gdDragIndex(int mouseButton,
java.lang.String modifier,
int index)
Drags the passed index. |
void |
gdDragValue(int mouseButton,
java.lang.String modifier,
java.lang.String value,
java.lang.String operator,
java.lang.String searchType)
Drags the passed value. |
void |
gdDropIndex(int index,
int delayBeforeDrop)
Drops onto the passed index. |
void |
gdDropValue(java.lang.String value,
java.lang.String operator,
java.lang.String searchType,
int delayBeforeDrop)
Drops on the passed value. |
java.lang.String |
gdReadValue(java.lang.String variable)
Action to read the value of the current selected item of the JList to store it in a variable in the Client |
void |
gdSelectIndex(java.lang.String indexList,
java.lang.String extendSelection,
int button)
Selects the passed index or enumeration of indices. |
void |
gdSelectValue(java.lang.String valueList,
java.lang.String operator,
java.lang.String searchType,
java.lang.String isExtendSelection,
int button)
Selects the passed value or enumeration of values. |
void |
gdSelectValue(java.lang.String valueList,
java.lang.String separator,
java.lang.String operator,
java.lang.String searchType,
int clickCount,
java.lang.String extendSelection)
Selects the passed value or enumeration of values. |
void |
gdVerifyContainsValue(java.lang.String value)
Verifies if the list contains an element that renderes value . |
void |
gdVerifyContainsValue(java.lang.String value,
java.lang.String operator,
boolean exists)
Verifies if the list contains an element that renderes value . |
void |
gdVerifySelectedIndex(java.lang.String indexList,
boolean isSelected)
Verifies if the passed index or enumeration of indices is selected. |
void |
gdVerifySelectedValue(java.lang.String valueList)
Verifies if the passed value or enumeration of values is selected. |
void |
gdVerifySelectedValue(java.lang.String valueList,
java.lang.String operator,
boolean isSelected)
Verifies if the passed value or enumeration of values is selected. |
void |
gdVerifySelectedValue(java.lang.String valueList,
java.lang.String operator,
java.lang.String separator,
boolean isSelected)
Verifies if the passed value or enumeration of values is selected. |
void |
gdVerifyText(java.lang.String text,
java.lang.String operator)
Verifies if all selected elements of a list match a 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 JListImplClass()
Method Detail |
---|
public javax.swing.JComponent getComponent()
getComponent
in class AbstractSwingImplClass
IBaseImplementationClass.setComponent(Object)
public void setComponent(java.lang.Object graphicsComponent)
graphicsComponent
- the component from the AUT control
affects
the AUT.public void gdVerifySelectedIndex(java.lang.String indexList, boolean isSelected)
,
, e.g. 1, 3,6
.
indexList
- The index or indices to verifyisSelected
- Whether the index or indices should be selected or not.public void gdVerifySelectedValue(java.lang.String valueList)
,
valueList
- The value or list of values to verifypublic void gdVerifySelectedValue(java.lang.String valueList, java.lang.String operator, boolean isSelected)
,
, but may be
changed by separator
.
valueList
- The value or list of values to verifyoperator
- The operator to use when comparing the expected and actual values.isSelected
- if the value(s) should be selected or not.public void gdVerifySelectedValue(java.lang.String valueList, java.lang.String operator, java.lang.String separator, boolean isSelected)
,
, but may be
changed by separator
.
valueList
- The value or list of values to verifyoperator
- The operator to use when comparing the expected and
actual values.separator
- The separatorisSelected
- if the value(s) should be selected or not.public void gdVerifyText(java.lang.String text, java.lang.String operator)
text
- The text to verifyoperator
- The operator used to verifypublic void gdSelectIndex(java.lang.String indexList, java.lang.String extendSelection, int button)
,
, e.g. 1, 3,6
.
indexList
- The index or indices to selectextendSelection
- Whether this selection extends a previous
selection.button
- what mouse button should be usedpublic void gdSelectValue(java.lang.String valueList, java.lang.String operator, java.lang.String searchType, java.lang.String isExtendSelection, int button)
,
.
valueList
- The value or list of values to selectoperator
- If regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")isExtendSelection
- Whether this selection extends a previous
selection. If true
, the first
element will be selected with CONTROL as a
modifier.button
- what mouse button should be usedpublic void gdDragValue(int mouseButton, java.lang.String modifier, java.lang.String value, java.lang.String operator, java.lang.String searchType)
mouseButton
- the mouseButton.modifier
- the modifier.value
- The value to dragoperator
- If regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")public void gdDropValue(java.lang.String value, java.lang.String operator, java.lang.String searchType, int delayBeforeDrop)
value
- The value on which to dropoperator
- If regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")delayBeforeDrop
- the amount of time (in milliseconds) to wait
between moving the mouse to the drop point and
releasing the mouse buttonpublic void gdDragIndex(int mouseButton, java.lang.String modifier, int index)
mouseButton
- the mouseButton.modifier
- the modifier.index
- The index to dragpublic void gdDropIndex(int index, int delayBeforeDrop)
index
- The index on which to dropdelayBeforeDrop
- the amount of time (in milliseconds) to wait
between moving the mouse to the drop point and
releasing the mouse buttonpublic void gdSelectValue(java.lang.String valueList, java.lang.String separator, java.lang.String operator, java.lang.String searchType, int clickCount, java.lang.String extendSelection)
,
, but may be changed by
separator
.
valueList
- The value or list of values to selectseparator
- The separator, optionaloperator
- If regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")clickCount
- the amount of clicks to useextendSelection
- Whether this selection extends a previous
selection.public void gdVerifyContainsValue(java.lang.String value)
value
.
value
- The text to verifypublic void gdVerifyContainsValue(java.lang.String value, java.lang.String operator, boolean exists)
value
.
value
- The text to verifyoperator
- The operator used to verifyexists
- if the wanted value should exist or not.public 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
JListHelper#getText
valueAbstractSwingImplClass.getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |