|
|||||||||
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.JComboBoxHelper
public class JComboBoxHelper
This is a helper class of JComboBoxImplClass
.
Constructor Summary | |
---|---|
JComboBoxHelper(JComboBoxImplClass implClass)
Creates a new instance. |
Method Summary | |
---|---|
void |
click(java.lang.Integer count)
performs a count -click on the textfield. |
boolean |
containsValue(java.lang.String value)
|
boolean |
containsValue(java.lang.String value,
java.lang.String operator)
|
java.lang.String |
getText()
|
void |
input(java.lang.String text,
boolean replace)
Inputs text to component . |
boolean |
isEditable()
|
void |
select(int index,
double maxWidth)
Selects the combobox element with the passed index. |
void |
select(java.lang.String[] values,
java.lang.String operator,
java.lang.String searchType,
double maxWidth)
Selects the specified item in the combobox. |
void |
selectAll()
select the whole text of the textfield by clicking three times. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JComboBoxHelper(JComboBoxImplClass implClass)
implClass
- The implementation class of JComboBox
.Method Detail |
---|
public void input(java.lang.String text, boolean replace) throws org.eclipse.jubula.rc.common.exception.StepExecutionException, java.lang.IllegalArgumentException
text
to component
.
text
- the text to type inreplace
- whether to rplace the text or not
org.eclipse.jubula.rc.common.exception.StepExecutionException
- if an error occurs during typing text
java.lang.IllegalArgumentException
- if component
or text
are nullpublic void select(java.lang.String[] values, java.lang.String operator, java.lang.String searchType, double maxWidth) throws org.eclipse.jubula.rc.common.exception.StepExecutionException, java.lang.IllegalArgumentException
values
- the values which should be (not) selectedoperator
- if regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")maxWidth
- the maximal width which is used to select the item
org.eclipse.jubula.rc.common.exception.StepExecutionException
- if an error occurs during selecting the item
java.lang.IllegalArgumentException
- if component
or text
are nullpublic void select(int index, double maxWidth)
index
- The index to selectmaxWidth
- the maximal width which is used to select the itempublic void selectAll()
public void click(java.lang.Integer count)
count
-click on the textfield.
count
- the number of clickspublic boolean containsValue(java.lang.String value, java.lang.String operator)
value
- The value to checkoperator
- The operator used to verify
true
if the combobox contains an element rendered with the passed valuepublic boolean containsValue(java.lang.String value)
value
- The value to check
true
if the combobox contains an element rendered with the passed valuepublic boolean isEditable()
public java.lang.String getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |