public class ListOperator extends ComponentOperator implements Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
ListOperator.ListByItemFinder
Allows to find component by item text.
|
static class |
ListOperator.ListFinder
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 "item" properties.
|
static java.lang.String |
SELECTED_ITEM_PREFIX_DPROP
Identifier for a "selected item" property.
|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
ListOperator(ContainerOperator cont)
Constructor.
|
ListOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a ListOperator object.
|
ListOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a ListOperator object.
|
ListOperator(ContainerOperator cont,
int index)
Constructor.
|
ListOperator(ContainerOperator cont,
java.lang.String text)
Constructor.
|
ListOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor.
|
ListOperator(ContainerOperator cont,
java.lang.String text,
int itemIndex,
int index)
Constructor.
|
ListOperator(java.awt.List b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener actionListener)
Maps
List.addActionListener(ActionListener) through queue |
void |
addItemListener(java.awt.event.ItemListener itemListener)
Maps
List.addItemListener(ItemListener) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
void |
deselect(int i)
Maps
List.deselect(int) through queue |
int |
findItemIndex(java.lang.String item)
Searches an item index.
|
int |
findItemIndex(java.lang.String item,
int index)
Searches an item index.
|
static java.awt.List |
findList(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th List in container.
|
static java.awt.List |
findList(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches List in container.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
java.lang.String |
getItem(int i)
Maps
List.getItem(int) through queue |
int |
getItemCount()
Maps
List.getItemCount() through queue |
java.lang.String[] |
getItems()
Maps
List.getItems() through queue |
java.awt.Dimension |
getMinimumSize(int i)
Maps
List.getMinimumSize(int) through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
java.awt.Dimension |
getPreferredSize(int i)
Maps
List.getPreferredSize(int) through queue |
int |
getRows()
Maps
List.getRows() through queue |
int |
getSelectedIndex()
Maps
List.getSelectedIndex() through queue |
int[] |
getSelectedIndexes()
Maps
List.getSelectedIndexes() through queue |
java.lang.String |
getSelectedItem()
Maps
List.getSelectedItem() through queue |
java.lang.String[] |
getSelectedItems()
Maps
List.getSelectedItems() through queue |
java.lang.Object[] |
getSelectedObjects()
Maps
List.getSelectedObjects() through queue |
int |
getVisibleIndex()
Maps
List.getVisibleIndex() through queue |
boolean |
isIndexSelected(int i)
Maps
List.isIndexSelected(int) through queue |
boolean |
isMultipleMode()
Maps
List.isMultipleMode() through queue |
void |
makeVisible(int i)
Maps
List.makeVisible(int) through queue |
void |
remove(int i)
Maps
List.remove(int) through queue |
void |
remove(java.lang.String string)
Maps
List.remove(String) through queue |
void |
removeActionListener(java.awt.event.ActionListener actionListener)
Maps
List.removeActionListener(ActionListener) through queue |
void |
removeAll()
Maps
List.removeAll() through queue |
void |
removeItemListener(java.awt.event.ItemListener itemListener)
Maps
List.removeItemListener(ItemListener) through queue |
void |
replaceItem(java.lang.String string,
int i)
Maps
List.replaceItem(String, int) through queue |
void |
select(int i)
Maps
List.select(int) through queue |
void |
selectItem(int index)
Selects an item.
|
void |
selectItem(java.lang.String item)
Selects an item.
|
void |
selectItem(java.lang.String item,
int index)
Selects an item.
|
void |
selectItems(int from,
int to)
Selects some items.
|
void |
setMultipleMode(boolean b)
Maps
List.setMultipleMode(boolean) through queue |
void |
setOutput(TestOut output)
Defines print output streams or writers.
|
void |
waitItemSelection(int itemIndex,
boolean selected)
Waits for item to be selected.
|
void |
waitItemsSelection(int from,
int to,
boolean selected)
Waits for items to be selected.
|
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, 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, 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, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
addOperatorPackage, 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, waitState
public static final java.lang.String ITEM_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String SELECTED_ITEM_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic ListOperator(java.awt.List b)
b
- a componentpublic ListOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public ListOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public ListOperator(ContainerOperator cont, java.lang.String text, int itemIndex, int index)
cont
- a containertext
- Text of item which is currently selected.itemIndex
- Item index.index
- Ordinal component index.TimeoutExpiredException
public ListOperator(ContainerOperator cont, java.lang.String text, int index)
cont
- a containertext
- Text of item which is currently selected.index
- Ordinal component index.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public ListOperator(ContainerOperator cont, java.lang.String text)
cont
- a containertext
- Text of item which is currently selected.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public ListOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.TimeoutExpiredException
public ListOperator(ContainerOperator cont)
cont
- a containerTimeoutExpiredException
public static java.awt.List findList(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.List findList(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public void setOutput(TestOut output)
Outputable
setOutput
in interface Outputable
setOutput
in class ComponentOperator
output
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class ComponentOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class ComponentOperator
anotherOperator
- an operator to copy the environment to.public int findItemIndex(java.lang.String item, int index)
item
- item text.index
- an ordinal index between appropriate ones.public int findItemIndex(java.lang.String item)
item
- item text.public void selectItem(java.lang.String item, int index)
item
- item text.index
- an ordinal index between appropriate ones.public void selectItem(java.lang.String item)
item
- item text.public void selectItem(int index)
index
- an item index.public void selectItems(int from, int to)
from
- start selection index.to
- end selection index.public void waitItemsSelection(int from, int to, boolean selected)
from
- Start selection inexto
- End selection inexselected
- Selected (true) or unselected (false).public void waitItemSelection(int itemIndex, boolean selected)
itemIndex
- an item index to be selected.selected
- Selected (true) or unselected (false).public java.util.Hashtable getDump()
ComponentOperator
getDump
in class ComponentOperator
public void addActionListener(java.awt.event.ActionListener actionListener)
List.addActionListener(ActionListener)
through queuepublic void addItemListener(java.awt.event.ItemListener itemListener)
List.addItemListener(ItemListener)
through queuepublic void deselect(int i)
List.deselect(int)
through queuepublic java.lang.String getItem(int i)
List.getItem(int)
through queuepublic int getItemCount()
List.getItemCount()
through queuepublic java.lang.String[] getItems()
List.getItems()
through queuepublic java.awt.Dimension getMinimumSize(int i)
List.getMinimumSize(int)
through queuepublic java.awt.Dimension getPreferredSize(int i)
List.getPreferredSize(int)
through queuepublic int getRows()
List.getRows()
through queuepublic int getSelectedIndex()
List.getSelectedIndex()
through queuepublic int[] getSelectedIndexes()
List.getSelectedIndexes()
through queuepublic java.lang.String getSelectedItem()
List.getSelectedItem()
through queuepublic java.lang.String[] getSelectedItems()
List.getSelectedItems()
through queuepublic java.lang.Object[] getSelectedObjects()
List.getSelectedObjects()
through queuepublic int getVisibleIndex()
List.getVisibleIndex()
through queuepublic boolean isIndexSelected(int i)
List.isIndexSelected(int)
through queuepublic boolean isMultipleMode()
List.isMultipleMode()
through queuepublic void makeVisible(int i)
List.makeVisible(int)
through queuepublic void remove(int i)
List.remove(int)
through queuepublic void remove(java.lang.String string)
List.remove(String)
through queuepublic void removeActionListener(java.awt.event.ActionListener actionListener)
List.removeActionListener(ActionListener)
through queuepublic void removeAll()
List.removeAll()
through queuepublic void removeItemListener(java.awt.event.ItemListener itemListener)
List.removeItemListener(ItemListener)
through queuepublic void replaceItem(java.lang.String string, int i)
List.replaceItem(String, int)
through queuepublic void select(int i)
List.select(int)
through queuepublic void setMultipleMode(boolean b)
List.setMultipleMode(boolean)
through queue