public class JListOperator extends JComponentOperator implements Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
JListOperator.JListByItemFinder
Allows to find component by an item.
|
static class |
JListOperator.JListFinder
Checks component type.
|
static interface |
JListOperator.ListItemChooser
Iterface to choose list item.
|
class |
JListOperator.NoSuchItemException
Can be throught during item selecting if list does not have
item requested.
|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder
ContainerOperator.ContainerFinder
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.
|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
JListOperator(ContainerOperator cont)
Constructor.
|
JListOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JListOperator object.
|
JListOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JListOperator object.
|
JListOperator(ContainerOperator cont,
int index)
Constructor.
|
JListOperator(ContainerOperator cont,
java.lang.String text)
Constructor.
|
JListOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor.
|
JListOperator(ContainerOperator cont,
java.lang.String text,
int itemIndex,
int index)
Constructor.
|
JListOperator(javax.swing.JList b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
Maps
JList.addListSelectionListener(ListSelectionListener) through queue |
void |
addSelectionInterval(int i,
int i1)
Maps
JList.addSelectionInterval(int, int) through queue |
void |
clearSelection()
Maps
JList.clearSelection() through queue |
java.lang.Object |
clickOnItem(int itemIndex,
int clickCount)
Clicks on item by item index.
|
java.lang.Object |
clickOnItem(java.lang.String item)
Finds item by item text, and do simple mouse click on it.
|
java.lang.Object |
clickOnItem(java.lang.String item,
boolean ce,
boolean cc)
Deprecated.
Use clickOnItem(String) or clickOnItem(String, StringComparator)
|
java.lang.Object |
clickOnItem(java.lang.String item,
boolean ce,
boolean cc,
int clickCount)
Deprecated.
Use clickOnItem(String, int) or clickOnItem(String, StringComparator, int)
|
java.lang.Object |
clickOnItem(java.lang.String item,
int clickCount)
Finds item by item text, and do mouse click on it.
|
java.lang.Object |
clickOnItem(java.lang.String item,
Operator.StringComparator comparator)
Finds item by item text, and do simple mouse click on it.
|
java.lang.Object |
clickOnItem(java.lang.String item,
Operator.StringComparator comparator,
int clickCount)
Finds item by item text, and do mouse click on it.
|
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
void |
ensureIndexIsVisible(int i)
Maps
JList.ensureIndexIsVisible(int) through queue |
int |
findItemIndex(ComponentChooser chooser)
Searches for an item by rendered component.
|
int |
findItemIndex(ComponentChooser chooser,
int index)
Searches for index'th item by rendered component.
|
int |
findItemIndex(JListOperator.ListItemChooser chooser)
Searches for an item good from chooser's point of view.
|
int |
findItemIndex(JListOperator.ListItemChooser chooser,
int index)
Searches for index'th item good from chooser's point of view.
|
int |
findItemIndex(java.lang.String item)
Searched for first item by text.
|
int |
findItemIndex(java.lang.String item,
boolean ce,
boolean cc)
Deprecated.
Use findItemIndex(String) or findItemIndex(String, StringComparator)
|
int |
findItemIndex(java.lang.String item,
boolean ce,
boolean cc,
int index)
Deprecated.
Use findItemIndex(String, int) or findItemIndex(String, StringComparator, int)
|
int |
findItemIndex(java.lang.String item,
int index)
Searched for index'th item by text.
|
int |
findItemIndex(java.lang.String item,
Operator.StringComparator comparator)
Searches for an item good from chooser's point of view.
|
int |
findItemIndex(java.lang.String item,
Operator.StringComparator comparator,
int index)
Searches for an item good from chooser's point of view.
|
static javax.swing.JList |
findJList(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th JList in container.
|
static javax.swing.JList |
findJList(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JList in container.
|
static javax.swing.JList |
findJList(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int itemIndex)
Searches JList by item.
|
static javax.swing.JList |
findJList(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int itemIndex,
int index)
Searches JList by item.
|
int |
getAnchorSelectionIndex()
Maps
JList.getAnchorSelectionIndex() through queue |
java.awt.Rectangle |
getCellBounds(int i,
int i1)
Maps
JList.getCellBounds(int, int) through queue |
javax.swing.ListCellRenderer |
getCellRenderer()
Maps
JList.getCellRenderer() through queue |
java.awt.Point |
getClickPoint(int itemIndex)
Gets point to click on itemIndex'th item.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
int |
getFirstVisibleIndex()
Maps
JList.getFirstVisibleIndex() through queue |
int |
getFixedCellHeight()
Maps
JList.getFixedCellHeight() through queue |
int |
getFixedCellWidth()
Maps
JList.getFixedCellWidth() through queue |
int |
getLastVisibleIndex()
Maps
JList.getLastVisibleIndex() through queue |
int |
getLeadSelectionIndex()
Maps
JList.getLeadSelectionIndex() through queue |
int |
getMaxSelectionIndex()
Maps
JList.getMaxSelectionIndex() through queue |
int |
getMinSelectionIndex()
Maps
JList.getMinSelectionIndex() through queue |
javax.swing.ListModel |
getModel()
Maps
JList.getModel() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
java.awt.Dimension |
getPreferredScrollableViewportSize()
Maps
JList.getPreferredScrollableViewportSize() through queue |
java.lang.Object |
getPrototypeCellValue()
Maps
JList.getPrototypeCellValue() through queue |
java.awt.Component |
getRenderedComponent(int itemIndex)
Ask renderer for component to be displayed.
|
java.awt.Component |
getRenderedComponent(int itemIndex,
boolean isSelected,
boolean cellHasFocus)
Ask renderer for component to be displayed.
|
int |
getScrollableBlockIncrement(java.awt.Rectangle rectangle,
int i,
int i1)
Maps
JList.getScrollableBlockIncrement(Rectangle, int, int) through queue |
boolean |
getScrollableTracksViewportHeight()
Maps
JList.getScrollableTracksViewportHeight() through queue |
boolean |
getScrollableTracksViewportWidth()
Maps
JList.getScrollableTracksViewportWidth() through queue |
int |
getScrollableUnitIncrement(java.awt.Rectangle rectangle,
int i,
int i1)
Maps
JList.getScrollableUnitIncrement(Rectangle, int, int) through queue |
int |
getSelectedIndex()
Maps
JList.getSelectedIndex() through queue |
int[] |
getSelectedIndices()
Maps
JList.getSelectedIndices() through queue |
java.lang.Object |
getSelectedValue()
Maps
JList.getSelectedValue() through queue |
java.lang.Object[] |
getSelectedValues()
Maps
JList.getSelectedValues() through queue |
java.awt.Color |
getSelectionBackground()
Maps
JList.getSelectionBackground() through queue |
java.awt.Color |
getSelectionForeground()
Maps
JList.getSelectionForeground() through queue |
int |
getSelectionMode()
Maps
JList.getSelectionMode() through queue |
javax.swing.ListSelectionModel |
getSelectionModel()
Maps
JList.getSelectionModel() through queue |
javax.swing.plaf.ListUI |
getUI()
Maps
JList.getUI() through queue |
boolean |
getValueIsAdjusting()
Maps
JList.getValueIsAdjusting() through queue |
int |
getVisibleRowCount()
Maps
JList.getVisibleRowCount() through queue |
java.awt.Point |
indexToLocation(int i)
Maps
JList.indexToLocation(int) through queue |
boolean |
isSelectedIndex(int i)
Maps
JList.isSelectedIndex(int) through queue |
boolean |
isSelectionEmpty()
Maps
JList.isSelectionEmpty() through queue |
int |
locationToIndex(java.awt.Point point)
Maps
JList.locationToIndex(Point) through queue |
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
Maps
JList.removeListSelectionListener(ListSelectionListener) through queue |
void |
removeSelectionInterval(int i,
int i1)
Maps
JList.removeSelectionInterval(int, int) through queue |
void |
scrollToItem(int itemIndex)
Scrolls to an item if the list is on a JScrollPane component.
|
void |
scrollToItem(java.lang.String item,
boolean ce,
boolean cc)
Deprecated.
Use scrollToItem(String) or scrollToItem(String, StringComparator)
|
void |
scrollToItem(java.lang.String item,
Operator.StringComparator comparator)
Scrolls to an item if the list is on a JScrollPane component.
|
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[] items)
Selects items by texts.
|
void |
selectItems(int[] indices)
Selects items by indices.
|
void |
setCellRenderer(javax.swing.ListCellRenderer listCellRenderer)
Maps
JList.setCellRenderer(ListCellRenderer) through queue |
void |
setFixedCellHeight(int i)
Maps
JList.setFixedCellHeight(int) through queue |
void |
setFixedCellWidth(int i)
Maps
JList.setFixedCellWidth(int) through queue |
void |
setListData(java.lang.Object[] object)
Maps
JList.setListData(Object[]) through queue |
void |
setListData(java.util.Vector vector)
Maps
JList.setListData(Vector) through queue |
void |
setModel(javax.swing.ListModel listModel)
Maps
JList.setModel(ListModel) through queue |
void |
setOutput(TestOut output)
Defines print output streams or writers.
|
void |
setPrototypeCellValue(java.lang.Object object)
Maps
JList.setPrototypeCellValue(Object) through queue |
void |
setSelectedIndex(int i)
Maps
JList.setSelectedIndex(int) through queue |
void |
setSelectedIndices(int[] i)
Maps
JList.setSelectedIndices(int[]) through queue |
void |
setSelectedValue(java.lang.Object object,
boolean b)
Maps
JList.setSelectedValue(Object, boolean) through queue |
void |
setSelectionBackground(java.awt.Color color)
Maps
JList.setSelectionBackground(Color) through queue |
void |
setSelectionForeground(java.awt.Color color)
Maps
JList.setSelectionForeground(Color) through queue |
void |
setSelectionInterval(int i,
int i1)
Maps
JList.setSelectionInterval(int, int) through queue |
void |
setSelectionMode(int i)
Maps
JList.setSelectionMode(int) through queue |
void |
setSelectionModel(javax.swing.ListSelectionModel listSelectionModel)
Maps
JList.setSelectionModel(ListSelectionModel) through queue |
void |
setUI(javax.swing.plaf.ListUI listUI)
Maps
JList.setUI(ListUI) through queue |
void |
setValueIsAdjusting(boolean b)
Maps
JList.setValueIsAdjusting(boolean) through queue |
void |
setVisibleRowCount(int i)
Maps
JList.setVisibleRowCount(int) through queue |
void |
waitItem(java.lang.String item,
int itemIndex)
Waits for item.
|
void |
waitItemSelection(int itemIndex,
boolean selected)
Waits for item to be selected.
|
void |
waitItemsSelection(int[] itemIndices,
boolean selected)
Waits for items to be selected.
|
static javax.swing.JList |
waitJList(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th JList in container.
|
static javax.swing.JList |
waitJList(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JList in container.
|
static javax.swing.JList |
waitJList(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int itemIndex)
Waits JList by item.
|
static javax.swing.JList |
waitJList(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int itemIndex,
int index)
Waits JList by item.
|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getTimeouts, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTimeouts, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTip
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponent
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, getCenterY, 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, 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, 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 JListOperator(javax.swing.JList b)
b
- a componentpublic JListOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JListOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JListOperator(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.public JListOperator(ContainerOperator cont, java.lang.String text, int index)
cont
- a containertext
- Text of item which is currently selected.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public JListOperator(ContainerOperator cont, java.lang.String text)
cont
- a containertext
- Text of item which is currently selected.Operator.isCaptionEqual(String, String, boolean, boolean)
public JListOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.public JListOperator(ContainerOperator cont)
cont
- a containerpublic static javax.swing.JList findJList(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 javax.swing.JList findJList(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JList findJList(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int itemIndex, int index)
cont
- Container to search component in.text
- Item text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.itemIndex
- Index of item to compare text. If -1, selected item is checked.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JList findJList(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int itemIndex)
cont
- Container to search component in.text
- Item text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.itemIndex
- Index of item to compare text. If -1, selected item is checked.Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JList waitJList(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 javax.swing.JList waitJList(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JList waitJList(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int itemIndex, int index)
cont
- Container to search component in.text
- Item text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.itemIndex
- Index of item to compare text. If -1, selected item is checked.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JList waitJList(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int itemIndex)
cont
- Container to search component in.text
- Item text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.itemIndex
- Index of item to compare text. If -1, selected item is checked.Operator.isCaptionEqual(String, String, boolean, boolean)
public void setOutput(TestOut output)
Outputable
setOutput
in interface Outputable
setOutput
in class JComponentOperator
output
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class JComponentOperator
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 java.awt.Point getClickPoint(int itemIndex)
itemIndex
- an index of an item to click.public java.awt.Component getRenderedComponent(int itemIndex, boolean isSelected, boolean cellHasFocus)
itemIndex
- Item index.isSelected
- True if the specified cell was selected.cellHasFocus
- True if the specified cell has the focus.public java.awt.Component getRenderedComponent(int itemIndex)
itemIndex
- Item index.public int findItemIndex(JListOperator.ListItemChooser chooser, int index)
chooser
- Item verifying object.index
- Ordinal item index.public int findItemIndex(JListOperator.ListItemChooser chooser)
chooser
- Item verifying object.findItemIndex(JListOperator.ListItemChooser, int)
,
findItemIndex(String, boolean, boolean)
public int findItemIndex(java.lang.String item, Operator.StringComparator comparator, int index)
item
- a text patterncomparator
- a string comparision algorithmindex
- Ordinal item index.findItemIndex(JListOperator.ListItemChooser, int)
,
findItemIndex(String, boolean, boolean)
public int findItemIndex(java.lang.String item, boolean ce, boolean cc, int index)
item
- a text patternce
- Compare text exactly.cc
- Compare text case sensitively.index
- Ordinal item index.Operator.isCaptionEqual(String, String, boolean, boolean)
public int findItemIndex(java.lang.String item, int index)
item
- a text patternindex
- Ordinal item index.public int findItemIndex(java.lang.String item, Operator.StringComparator comparator)
item
- a text patterncomparator
- a string comparision algorithmfindItemIndex(JListOperator.ListItemChooser, int)
,
findItemIndex(String, boolean, boolean)
public int findItemIndex(java.lang.String item, boolean ce, boolean cc)
item
- a text patternce
- Compare text exactly.cc
- Compare text case sensitively.Operator.isCaptionEqual(String, String, boolean, boolean)
public int findItemIndex(java.lang.String item)
item
- a text patternOperator.isCaptionEqual(String, String, boolean, boolean)
public int findItemIndex(ComponentChooser chooser, int index)
chooser
- Component verifying object.index
- Ordinal item index.getRenderedComponent(int, boolean, boolean)
public int findItemIndex(ComponentChooser chooser)
chooser
- Component verifying object.getRenderedComponent(int, boolean, boolean)
public java.lang.Object clickOnItem(int itemIndex, int clickCount)
itemIndex
- Item index.clickCount
- count click.JListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item, Operator.StringComparator comparator, int clickCount)
item
- Item text.comparator
- a string comparision algorithmclickCount
- count click.JListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item, boolean ce, boolean cc, int clickCount)
item
- Item text.ce
- Compare exactly.cc
- Compare case sensitively.clickCount
- count click.JListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item, int clickCount)
item
- Item text.clickCount
- count click.JListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item, Operator.StringComparator comparator)
item
- Item text.comparator
- a string comparision algorithmJListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item, boolean ce, boolean cc)
item
- Item text.ce
- Compare exactly.cc
- Compare case sensitively.JListOperator.NoSuchItemException
public java.lang.Object clickOnItem(java.lang.String item)
item
- Item text.JListOperator.NoSuchItemException
public void scrollToItem(int itemIndex)
itemIndex
- an item index.JListOperator.NoSuchItemException
scrollToItem(String, boolean, boolean)
public void scrollToItem(java.lang.String item, Operator.StringComparator comparator)
item
- Item textcomparator
- a string comparision algorithmscrollToItem(String, boolean, boolean)
public void scrollToItem(java.lang.String item, boolean ce, boolean cc)
item
- Item textce
- Compare exactly.cc
- Compare case sensitively.scrollToItem(String, boolean, boolean)
public void selectItem(int index)
index
- an item index.public void selectItem(java.lang.String item)
item
- an item text.public void selectItems(int[] indices)
indices
- item indices.public void selectItem(java.lang.String[] items)
items
- item texts.public void waitItemsSelection(int[] itemIndices, boolean selected)
itemIndices
- item indices to be selectedselected
- Selected (true) or unselected (false).public void waitItemSelection(int itemIndex, boolean selected)
itemIndex
- an item needs to be selectedselected
- Selected (true) or unselected (false).public void waitItem(java.lang.String item, int itemIndex)
item
- an item textitemIndex
- Index of item to check or -1 to check selected item.public java.util.Hashtable getDump()
getDump
in class JComponentOperator
public void addListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
JList.addListSelectionListener(ListSelectionListener)
through queuepublic void addSelectionInterval(int i, int i1)
JList.addSelectionInterval(int, int)
through queuepublic void clearSelection()
JList.clearSelection()
through queuepublic void ensureIndexIsVisible(int i)
JList.ensureIndexIsVisible(int)
through queuepublic int getAnchorSelectionIndex()
JList.getAnchorSelectionIndex()
through queuepublic java.awt.Rectangle getCellBounds(int i, int i1)
JList.getCellBounds(int, int)
through queuepublic javax.swing.ListCellRenderer getCellRenderer()
JList.getCellRenderer()
through queuepublic int getFirstVisibleIndex()
JList.getFirstVisibleIndex()
through queuepublic int getFixedCellHeight()
JList.getFixedCellHeight()
through queuepublic int getFixedCellWidth()
JList.getFixedCellWidth()
through queuepublic int getLastVisibleIndex()
JList.getLastVisibleIndex()
through queuepublic int getLeadSelectionIndex()
JList.getLeadSelectionIndex()
through queuepublic int getMaxSelectionIndex()
JList.getMaxSelectionIndex()
through queuepublic int getMinSelectionIndex()
JList.getMinSelectionIndex()
through queuepublic javax.swing.ListModel getModel()
JList.getModel()
through queuepublic java.awt.Dimension getPreferredScrollableViewportSize()
JList.getPreferredScrollableViewportSize()
through queuepublic java.lang.Object getPrototypeCellValue()
JList.getPrototypeCellValue()
through queuepublic int getScrollableBlockIncrement(java.awt.Rectangle rectangle, int i, int i1)
JList.getScrollableBlockIncrement(Rectangle, int, int)
through queuepublic boolean getScrollableTracksViewportHeight()
JList.getScrollableTracksViewportHeight()
through queuepublic boolean getScrollableTracksViewportWidth()
JList.getScrollableTracksViewportWidth()
through queuepublic int getScrollableUnitIncrement(java.awt.Rectangle rectangle, int i, int i1)
JList.getScrollableUnitIncrement(Rectangle, int, int)
through queuepublic int getSelectedIndex()
JList.getSelectedIndex()
through queuepublic int[] getSelectedIndices()
JList.getSelectedIndices()
through queuepublic java.lang.Object getSelectedValue()
JList.getSelectedValue()
through queuepublic java.lang.Object[] getSelectedValues()
JList.getSelectedValues()
through queuepublic java.awt.Color getSelectionBackground()
JList.getSelectionBackground()
through queuepublic java.awt.Color getSelectionForeground()
JList.getSelectionForeground()
through queuepublic int getSelectionMode()
JList.getSelectionMode()
through queuepublic javax.swing.ListSelectionModel getSelectionModel()
JList.getSelectionModel()
through queuepublic javax.swing.plaf.ListUI getUI()
JList.getUI()
through queuepublic boolean getValueIsAdjusting()
JList.getValueIsAdjusting()
through queuepublic int getVisibleRowCount()
JList.getVisibleRowCount()
through queuepublic java.awt.Point indexToLocation(int i)
JList.indexToLocation(int)
through queuepublic boolean isSelectedIndex(int i)
JList.isSelectedIndex(int)
through queuepublic boolean isSelectionEmpty()
JList.isSelectionEmpty()
through queuepublic int locationToIndex(java.awt.Point point)
JList.locationToIndex(Point)
through queuepublic void removeListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
JList.removeListSelectionListener(ListSelectionListener)
through queuepublic void removeSelectionInterval(int i, int i1)
JList.removeSelectionInterval(int, int)
through queuepublic void setCellRenderer(javax.swing.ListCellRenderer listCellRenderer)
JList.setCellRenderer(ListCellRenderer)
through queuepublic void setFixedCellHeight(int i)
JList.setFixedCellHeight(int)
through queuepublic void setFixedCellWidth(int i)
JList.setFixedCellWidth(int)
through queuepublic void setListData(java.util.Vector vector)
JList.setListData(Vector)
through queuepublic void setListData(java.lang.Object[] object)
JList.setListData(Object[])
through queuepublic void setModel(javax.swing.ListModel listModel)
JList.setModel(ListModel)
through queuepublic void setPrototypeCellValue(java.lang.Object object)
JList.setPrototypeCellValue(Object)
through queuepublic void setSelectedIndex(int i)
JList.setSelectedIndex(int)
through queuepublic void setSelectedIndices(int[] i)
JList.setSelectedIndices(int[])
through queuepublic void setSelectedValue(java.lang.Object object, boolean b)
JList.setSelectedValue(Object, boolean)
through queuepublic void setSelectionBackground(java.awt.Color color)
JList.setSelectionBackground(Color)
through queuepublic void setSelectionForeground(java.awt.Color color)
JList.setSelectionForeground(Color)
through queuepublic void setSelectionInterval(int i, int i1)
JList.setSelectionInterval(int, int)
through queuepublic void setSelectionMode(int i)
JList.setSelectionMode(int)
through queuepublic void setSelectionModel(javax.swing.ListSelectionModel listSelectionModel)
JList.setSelectionModel(ListSelectionModel)
through queuepublic void setUI(javax.swing.plaf.ListUI listUI)
JList.setUI(ListUI)
through queuepublic void setValueIsAdjusting(boolean b)
JList.setValueIsAdjusting(boolean)
through queuepublic void setVisibleRowCount(int i)
JList.setVisibleRowCount(int)
through queue