|
|||||||||
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.JListHelper
public class JListHelper
A helper class for robot operations and method calls on JList
.
Constructor Summary | |
---|---|
JListHelper(AbstractSwingImplClass implClass)
The constructor. |
Method Summary | |
---|---|
void |
clickOnIndex(javax.swing.JList list,
java.lang.Integer i)
Clicks on the index of the passed list. |
void |
clickOnIndex(javax.swing.JList list,
java.lang.Integer i,
org.eclipse.jubula.rc.common.driver.ClickOptions co)
Clicks on the index of the passed list. |
void |
clickOnIndex(javax.swing.JList list,
java.lang.Integer i,
org.eclipse.jubula.rc.common.driver.ClickOptions co,
double maxWidth)
Clicks on the index of the passed list. |
boolean |
containsValue(javax.swing.JList list,
java.lang.String value)
|
boolean |
containsValue(javax.swing.JList list,
java.lang.String value,
java.lang.String operator)
|
java.lang.Integer[] |
findIndicesOfValues(javax.swing.JList list,
java.lang.String[] values,
java.lang.String operator)
Finds the indices of the list elements that are rendered with the passed values. |
java.lang.Integer[] |
findIndicesOfValues(javax.swing.JList list,
java.lang.String[] values,
java.lang.String operator,
java.lang.String searchType)
Finds the indices of the list elements that are rendered with the passed values. |
int[] |
getSelectedIndices(javax.swing.JList list)
|
java.lang.String[] |
getSelectedValues(javax.swing.JList list)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JListHelper(AbstractSwingImplClass implClass)
implClass
- The implementation classMethod Detail |
---|
public void clickOnIndex(javax.swing.JList list, java.lang.Integer i, org.eclipse.jubula.rc.common.driver.ClickOptions co, double maxWidth)
list
- The list to click oni
- The index to clickco
- the click options to usemaxWidth
- the maximal width which is used to select the itempublic void clickOnIndex(javax.swing.JList list, java.lang.Integer i, org.eclipse.jubula.rc.common.driver.ClickOptions co)
list
- The list to click oni
- The index to clickco
- the click options to usepublic void clickOnIndex(javax.swing.JList list, java.lang.Integer i)
list
- The list to click oni
- The index to clickpublic java.lang.Integer[] findIndicesOfValues(javax.swing.JList list, java.lang.String[] values, java.lang.String operator, java.lang.String searchType)
list
- The listvalues
- The valuesoperator
- operator to usesearchType
- Determines where the search begins ("relative" or "absolute")
null
elements for
all values that are not found in the listpublic java.lang.Integer[] findIndicesOfValues(javax.swing.JList list, java.lang.String[] values, java.lang.String operator)
list
- The listvalues
- The valuesoperator
- operator to use
null
elements for
all values that are not found in the listpublic boolean containsValue(javax.swing.JList list, java.lang.String value)
list
- The listvalue
- The value
true
if the list contains an element that is
rendered with value
public boolean containsValue(javax.swing.JList list, java.lang.String value, java.lang.String operator)
list
- The listvalue
- The valueoperator
- The operator used to verify
true
if the list contains an element that is
rendered with value
public int[] getSelectedIndices(javax.swing.JList list)
list
- The list
public java.lang.String[] getSelectedValues(javax.swing.JList list)
list
- The list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |