public class ChoiceOperator extends ComponentOperator implements Outputable
Timeouts| Modifier and Type | Class and Description |
|---|---|
static class |
ChoiceOperator.ChoiceBySelectedItemFinder
Allows to find component by label.
|
static class |
ChoiceOperator.ChoiceFinder
Checks component type.
|
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ITEM_PREFIX_DPROP
Identifier for a items properties.
|
static java.lang.String |
SELECTED_ITEM_DPROP
Identifier for a selected item property.
|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPCLASS_DPROP, TO_STRING_DPROP| Constructor and Description |
|---|
ChoiceOperator(java.awt.Choice b)
Constructor.
|
ChoiceOperator(ContainerOperator cont)
Constructor.
|
ChoiceOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a ChoiceOperator object.
|
ChoiceOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a ChoiceOperator object.
|
ChoiceOperator(ContainerOperator cont,
int index)
Constructor.
|
ChoiceOperator(ContainerOperator cont,
java.lang.String text)
Constructor.
|
ChoiceOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String item)
Maps
Choice.add(String) through queue |
void |
addItemListener(java.awt.event.ItemListener itemListener)
Maps
Choice.addItemListener(ItemListener) through queue |
void |
addNotify()
Maps
Choice.addNotify() through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
static java.awt.Choice |
findChoice(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th Choice in container.
|
static java.awt.Choice |
findChoice(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches Choice in container.
|
static java.awt.Choice |
findChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Searches Choice by text.
|
static java.awt.Choice |
findChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Searches Choice by text.
|
int |
findItemIndex(java.lang.String item)
Finds an item between choice items.
|
int |
findItemIndex(java.lang.String item,
int index)
Finds an item between choice items.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
java.lang.String |
getItem(int index)
Maps
Choice.getItem(int) through queue |
int |
getItemCount()
Maps
Choice.getItemCount() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
int |
getSelectedIndex()
Maps
Choice.getSelectedIndex() through queue |
java.lang.String |
getSelectedItem()
Maps
Choice.getSelectedItem() through queue |
void |
insert(java.lang.String item,
int index)
Maps
Choice.insert(String) through queue |
void |
remove(int position)
Maps
Choice.remove(int) through queue |
void |
remove(java.lang.String item)
Maps
Choice.remove(String) through queue |
void |
removeAll()
Maps
Choice.removeAll() through queue |
void |
removeItemListener(java.awt.event.ItemListener itemListener)
Maps
Choice.removeItemListener(ItemListener) through queue |
void |
select(int pos)
Maps
Choice.select(int) through queue |
void |
selectItem(int index)
Selects an item by index.
|
void |
selectItem(java.lang.String item)
Selects an item by text.
|
void |
selectItem(java.lang.String item,
int index)
Selects an item by text.
|
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setState(java.lang.String str)
Maps
Choice.select(String) through queue |
static java.awt.Choice |
waitChoice(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th Choice in container.
|
static java.awt.Choice |
waitChoice(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits Choice in container.
|
static java.awt.Choice |
waitChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Waits Choice by text.
|
static java.awt.Choice |
waitChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Waits Choice by text.
|
void |
waitItemSelected(int index)
Waits for item to be selected.
|
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, findComponents, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterXForClick, getCenterY, getCenterYForClick, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getTimeouts, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setTimeouts, setVisible, transferFocus, typedKey, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabledaddOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitStatepublic static final java.lang.String SELECTED_ITEM_DPROP
getDump(),
Constant Field Valuespublic static final java.lang.String ITEM_PREFIX_DPROP
getDump(),
Constant Field Valuespublic ChoiceOperator(java.awt.Choice b)
b - a componentpublic ChoiceOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont - containerchooser - a component chooser specifying searching criteria.index - an index between appropriate ones.public ChoiceOperator(ContainerOperator cont, ComponentChooser chooser)
cont - containerchooser - a component chooser specifying searching criteria.public ChoiceOperator(ContainerOperator cont, java.lang.String text, int index)
cont - containertext - Choice text.index - Ordinal component index.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public ChoiceOperator(ContainerOperator cont, java.lang.String text)
cont - containertext - Choice text.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public ChoiceOperator(ContainerOperator cont, int index)
cont - containerindex - Ordinal component index.TimeoutExpiredExceptionpublic ChoiceOperator(ContainerOperator cont)
cont - containerTimeoutExpiredExceptionpublic static java.awt.Choice findChoice(java.awt.Container cont,
ComponentChooser chooser,
int index)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.index - Ordinal component index.public static java.awt.Choice findChoice(java.awt.Container cont,
ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.Choice findChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
cont - Container to search component in.text - Choice text. If null, contents is not checked.ce - Compare text exactly.ccs - Compare text case sensitively.index - Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)public static java.awt.Choice findChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
cont - Container to search component in.text - Choice text. If null, contents is not checked.ce - Compare text exactly.ccs - Compare text case sensitively.Operator.isCaptionEqual(String, String, boolean, boolean)public static java.awt.Choice waitChoice(java.awt.Container cont,
ComponentChooser chooser,
int index)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.index - Ordinal component index.TimeoutExpiredExceptionpublic static java.awt.Choice waitChoice(java.awt.Container cont,
ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredExceptionpublic static java.awt.Choice waitChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
cont - Container to search component in.text - Choice text. If null, contents is not checked.ce - Compare text exactly.ccs - Compare text case sensitively.index - Ordinal component index.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public static java.awt.Choice waitChoice(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
cont - Container to search component in.text - Choice text. If null, contents is not checked.ce - Compare text exactly.ccs - Compare text case sensitively.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public void setOutput(TestOut out)
OutputablesetOutput in interface OutputablesetOutput in class ComponentOperatorout - Identify the streams or writers used for print output.Outputable.getOutput()public TestOut getOutput()
OutputablegetOutput in interface OutputablegetOutput in class ComponentOperatorOutputable.setOutput(org.netbeans.jemmy.TestOut)public void copyEnvironment(Operator anotherOperator)
OperatorcopyEnvironment in class ComponentOperatoranotherOperator - an operator to copy the environment to.public int findItemIndex(java.lang.String item,
int index)
item - a text pattern.index - an ordinal index between appropriate items.public int findItemIndex(java.lang.String item)
item - a text pattern.public void selectItem(java.lang.String item,
int index)
item - a text pattern.index - an ordinal index between appropriate items.public void selectItem(java.lang.String item)
item - a text pattern.public void selectItem(int index)
index - an item index.public void waitItemSelected(int index)
index - Item index.public java.util.Hashtable getDump()
getDump in class ComponentOperatorpublic void add(java.lang.String item)
Choice.add(String) through queuepublic void addItemListener(java.awt.event.ItemListener itemListener)
Choice.addItemListener(ItemListener) through queuepublic void addNotify()
Choice.addNotify() through queueaddNotify in class ComponentOperatorpublic java.lang.String getItem(int index)
Choice.getItem(int) through queuepublic int getItemCount()
Choice.getItemCount() through queuepublic int getSelectedIndex()
Choice.getSelectedIndex() through queuepublic java.lang.String getSelectedItem()
Choice.getSelectedItem() through queuepublic void insert(java.lang.String item,
int index)
Choice.insert(String) through queuepublic void remove(int position)
Choice.remove(int) through queuepublic void remove(java.lang.String item)
Choice.remove(String) through queuepublic void removeAll()
Choice.removeAll() through queuepublic void removeItemListener(java.awt.event.ItemListener itemListener)
Choice.removeItemListener(ItemListener) through queuepublic void select(int pos)
Choice.select(int) through queuepublic void setState(java.lang.String str)
Choice.select(String) through queue