|
|||||||||
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.JComboBoxImplClass
public class JComboBoxImplClass
The implementation class for JComboBox
.
Field Summary | |
---|---|
static int |
NO_MAX_WIDTH
INVALID_MAX_WIDTH |
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 | |
---|---|
JComboBoxImplClass()
|
Method Summary | |
---|---|
void |
gdInputText(java.lang.String text)
Sets the text into the combobox, by typing it into the textfield |
java.lang.String |
gdReadValue(java.lang.String variable)
Action to read the value of a JComboBox to store it in a variable in the Client |
void |
gdReplaceText(java.lang.String text)
Types text into the component. |
void |
gdSelectIndex(java.lang.String index)
Selects index in the combobox. |
void |
gdSelectValue(java.lang.String valueList,
java.lang.String operator,
java.lang.String searchType)
Selects a value from the list of the combobox |
void |
gdVerifyContainsValue(java.lang.String text)
Checks if the component contains the specified text. |
void |
gdVerifyContainsValue(java.lang.String value,
java.lang.String operator,
boolean exists)
Verifies if the list contains an element that renderes value . |
void |
gdVerifyEditable(boolean editable)
Verifies the editable property. |
void |
gdVerifyFocus(boolean hasFocus)
Verifies if the component has the focus. |
void |
gdVerifySelectedIndex(java.lang.String index,
boolean isSelected)
Verifies if the combobox has index selected. |
void |
gdVerifyText(java.lang.String text)
Verifies if the passed text is currently selected in the combobox. |
void |
gdVerifyText(java.lang.String text,
java.lang.String operator)
Verifies if the passed text is currently selected in the combobox. |
JComboBoxHelper |
getComboBoxHelper()
Gets the ComboBox helper. |
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 |
Field Detail |
---|
public static final int NO_MAX_WIDTH
INVALID_MAX_WIDTH
Constructor Detail |
---|
public JComboBoxImplClass()
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
IBaseImplementationClass.setComponent(Object)
public JComboBoxHelper getComboBoxHelper()
public void gdVerifyEditable(boolean editable)
editable
- The editable property to verify.public void gdVerifySelectedIndex(java.lang.String index, boolean isSelected)
index
selected.
index
- The index to verifyisSelected
- If the index should be selected or not.public void gdVerifyText(java.lang.String text, java.lang.String operator)
text
- The text to verify.operator
- The operator used to verifypublic void gdVerifyText(java.lang.String text)
text
- The text to verify.public void gdVerifyContainsValue(java.lang.String text)
text
- check if this text is in the comboboxpublic 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 value should exist or not.public void gdReplaceText(java.lang.String text)
text
into the component. This replaces the shown
content.
text
- the text to type inpublic void gdInputText(java.lang.String text)
text
- the text which should be typed in.public void gdSelectIndex(java.lang.String index)
index
in the combobox.
index
- The index to selectpublic void gdSelectValue(java.lang.String valueList, java.lang.String operator, java.lang.String searchType)
valueList
- The value or list of values to (not)selectoperator
- if regular expressions are usedsearchType
- Determines where the search begins ("relative" or "absolute")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
AbstractSwingImplClass.getText()
public void gdVerifyFocus(boolean hasFocus)
gdVerifyFocus
in class AbstractSwingImplClass
hasFocus
- The hasFocus property to verify.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |